mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Bubble up parsing error from en.json (#27362)
Running `make i18n-extract` on a en.json file with bad JSON will just wipe off all keys instead of throwing the error. This is very confusing and can lead to a lot of time wasted because there's no indication that the JSON is incorrect. Fixing this. ```release-note NONE ```
This commit is contained in:
parent
86a98ea030
commit
59998b0b84
@ -113,8 +113,8 @@ func getBaseFileSrcStrings(mattermostDir string) ([]Translation, error) {
|
||||
return nil, err
|
||||
}
|
||||
var translations []Translation
|
||||
_ = json.Unmarshal(jsonFile, &translations)
|
||||
return translations, nil
|
||||
err = json.Unmarshal(jsonFile, &translations)
|
||||
return translations, err
|
||||
}
|
||||
|
||||
func extractSrcStrings(enterpriseDir, mattermostDir, modelDir, pluginDir, portalDir string) map[string]bool {
|
||||
|
Loading…
Reference in New Issue
Block a user