Report compile errors without throw, fixes #662