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) {
150150 // initialize inventory
151151 err := inventory .Init (configuration .DataDir (configuration .Settings ).String ())
152152 if err != nil {
153- feedback .Fatal (fmt .Sprintf ("Error: %v" , err ), feedback .ErrBadArgument )
153+ feedback .Fatal (fmt .Sprintf ("Error: %v" , err ), feedback .ErrInitializingInventory )
154154 }
155155
156156 // https://no-color.org/
Original file line number Diff line number Diff line change @@ -42,4 +42,8 @@ const (
4242
4343 // ErrBadArgument is returned when the arguments are not valid (7)
4444 ErrBadArgument
45+
46+ // ErrInitializingInventory is returned when the inventory cannot be initialized,
47+ // usually depends on a wrong configuration of the data dir (8)
48+ ErrInitializingInventory
4549)
You can’t perform that action at this time.
0 commit comments