rocked the error message handling like a boss