• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed json error in build.json is ignored

Affected version
2.0 DP 10

Jake B.

Well-known member
#1
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
#4
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.