Get compile errors from script

I’m looking for a way to get notified when features cant compile from within a script.
Font.compileFeatures() doesn’t raise an error in case of incorrect code, and instance.generate() still returns True even when fonts can’t actually export because uncompilable features.

Is there a way to access the same Export Result panel that launches when Glyphs raises errors upon exporting fonts the usual way?

Font.compileTempFontError_(None)

I added the same return to Font.compileFeatures()
I fixed the error reporting of instance.generate().

1 Like