Skip to content

Commit

Permalink
report errored filename when it failed to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-cbon authored and nicksnyder committed Nov 7, 2016
1 parent 1c9e017 commit 991e81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func parseTranslations(filename string, buf []byte) ([]translation.Translation,
var translationsData []map[string]interface{}
if len(buf) > 0 {
if err := unmarshalFunc(buf, &translationsData); err != nil {
return nil, err
return nil, fmt.Errorf("failed to load %s because %s", filename, err)
}
}

Expand Down

0 comments on commit 991e81c

Please sign in to comment.