Fixed json error in build.json is ignored

Affected version
2.0 DP 10

Jake B.

Well-known member
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

Chris D

XenForo developer
Staff member
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:
throw new \LogicException("Unable to read build.json");
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.