Modify error messages

More consistent with mainstream languages