minor improvement to error msg