[frontend] Adjust error reporting.