fixes #38

return a new Exception when compilation failed (and not just log an error)