added error type to error message