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 @@ -49,4 +49,8 @@ const (
4949
5050 // ErrBadTCPPortArgument is returned if the TCP port argument is not valid (9)
5151 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
5256)
You can’t perform that action at this time.
0 commit comments