Show better error messages when compile fails