diff options
Diffstat (limited to 'internal/cli/root.go')
-rw-r--r-- | internal/cli/root.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/cli/root.go b/internal/cli/root.go index 29fd14b8..723e8a01 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -60,7 +60,10 @@ func NewCommand(cmdName string) *cobra.Command { //nolint:funlen } if dotenv != "" { - _ = godotenv.Load(dotenv) // error ignored because dotenv is optional feature + err := godotenv.Load(dotenv) + if err != nil { + return err + } } cfg := &config.Plugin{Path: cfgFile, Prefix: "rr", Flags: override} |