Fixed json error in build.json is ignored

Jake B.

Well-known member
Affected version
2.0 DP 10
When I build an add-on if there is a syntax error in my build.json the file is completely ignored rather than letting me know there was an issue
 
We've made some adjustments here now. We generally ignore build.json file issues until we're building, where we'll throw an exception at that point if the file exists but doesn't appear to be valid.

For now if you want to edit AddOn.php and change:
PHP:
throw new \LogicException("Unable to read build.json");
To:
PHP:
throw new \LogicException("Unable to read build.json for add-on " . $this->title);
That will at least tell you which is the problematic add-on.
 
Top Bottom