Skip to content

Commit

Permalink
bug: show error when config.json is malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Aug 28, 2024
1 parent 252e47f commit 5dfb195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/cliconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ReadCLIConfig(gptscriptConfigFile string) (*CLIConfig, error) {
location: gptscriptConfigFile,
}
if err := json.Unmarshal(data, result); err != nil {
return nil, err
return nil, fmt.Errorf("failed to unmarshal %s: %v", gptscriptConfigFile, err)
}

if result.CredentialsStore == "" {
Expand Down

0 comments on commit 5dfb195

Please sign in to comment.