Closed nichtich closed 5 years ago
There should be an error on the JavaScript console, and I don't think there needs to be a user-facing error for this.
We can additionally add an error to the build script when cocoda.json
exists but is not valid JSON.
A malformed user config will now be detected in the build script. Currently, the build will not be interrupted, but continued with the branch config or an empty user config. If necessary, I can change this so the build fails if the config file is malformed.
The build is now canceled if the user config is malformed. Also, Cocoda will show an error message if a malformed config is loaded: https://coli-conc.gbv.de/cocoda/dev/?config=test.json
If the config file (
cocoda.json
by default) is malformed JSON, it is ignored. An error message should be shown instead.