Corrected errormessage output