Skip to content

Commit

Permalink
Merge pull request #829 from ibuildthecloud/share-context-bug
Browse files Browse the repository at this point in the history
bug: show error when config.json is malformed
  • Loading branch information
ibuildthecloud authored Aug 28, 2024
2 parents 252e47f + 5dfb195 commit fbb8f5d
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 fbb8f5d

Please sign in to comment.