mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Added an error catch for CollectAll in cmd
This commit is contained in:
parent
b024675e92
commit
472735fb9d
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ var collectCmd = &cobra.Command{
|
||||||
ForceUpdate: forceUpdate,
|
ForceUpdate: forceUpdate,
|
||||||
AccessToken: accessToken,
|
AccessToken: accessToken,
|
||||||
}
|
}
|
||||||
magellan.CollectAll(&probeStates, l, q)
|
err = magellan.CollectAll(&probeStates, l, q)
|
||||||
|
if err != nil {
|
||||||
|
l.Log.Errorf("failed to collect data: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// add necessary headers for final request (like token)
|
// add necessary headers for final request (like token)
|
||||||
headers := make(map[string]string)
|
headers := make(map[string]string)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue