consistent error messages

#270