separated error msg into a constants module