unified error message, fixed #2