Skip to content

Commit

Permalink
fix(core): crash on missing field that support file loading (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Nov 8, 2022
1 parent d717641 commit d708323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/core/arg_file_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func loadArgsFileContent(cmd *Command, cmdArgs interface{}) error {
}
v.SetString(string(content))
}
case nil:
continue
default:
panic(fmt.Errorf("unsupported field type: %T", v.Interface()))
}
Expand Down

0 comments on commit d708323

Please sign in to comment.