Some more changes to error printing to reduce redundant information.