File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ func preRun(cmd *cobra.Command, args []string) {
150
150
// initialize inventory
151
151
err := inventory .Init (configuration .DataDir (configuration .Settings ).String ())
152
152
if err != nil {
153
- feedback .Fatal (fmt .Sprintf ("Error: %v" , err ), feedback .ErrBadArgument )
153
+ feedback .Fatal (fmt .Sprintf ("Error: %v" , err ), feedback .ErrInitializingInventory )
154
154
}
155
155
156
156
// https://no-color.org/
Original file line number Diff line number Diff line change @@ -49,4 +49,8 @@ const (
49
49
50
50
// ErrBadTCPPortArgument is returned if the TCP port argument is not valid (9)
51
51
ErrBadTCPPortArgument
52
+
53
+ // ErrInitializingInventory is returned when the inventory cannot be initialized,
54
+ // usually depends on a wrong configuration of the data dir (10)
55
+ ErrInitializingInventory
52
56
)
You can’t perform that action at this time.
0 commit comments