add method to add an error from a string as a shortcut