changed the regex for the error. Also removed unnecessary logic from SystemError class and errors_spec.rb.