File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
flags "stamus-ctl/internal/handlers"
7
7
config "stamus-ctl/internal/handlers/config"
8
+ "stamus-ctl/internal/logging"
8
9
9
10
// External
10
11
"github.com/spf13/cobra"
@@ -20,7 +21,10 @@ func setCmd() *cobra.Command {
20
21
Example: set scirius.token=AwesomeToken
21
22
Or, use subcommands to set content or current configuration.` ,
22
23
RunE : func (cmd * cobra.Command , args []string ) error {
23
- setHandler (cmd , args )
24
+ err := setHandler (cmd , args )
25
+ if err != nil {
26
+ logging .Sugar .Error (err )
27
+ }
24
28
return nil
25
29
},
26
30
}
@@ -45,7 +49,10 @@ func setContentCmd() *cobra.Command {
45
49
Example: config content /nginx:/etc/nginx /nginx.conf:/etc/nginx/nginx.conf,
46
50
` ,
47
51
RunE : func (cmd * cobra.Command , args []string ) error {
48
- setContentHandler (cmd , args )
52
+ err := setContentHandler (cmd , args )
53
+ if err != nil {
54
+ logging .Sugar .Error (err )
55
+ }
49
56
return nil
50
57
},
51
58
}
You can’t perform that action at this time.
0 commit comments