* feat: update the email addresses in the site config * chore: update the default email address everywhere * feat: update the template for the config * chore: remove default_site_mail as an allowed parameter * feat: change biz@dev.to to teh business email address and with a subject * feat: update partners@dev.to to use SiteConfig.email_addresses[:business] * feta: update to business email address * feat: update members@dev.to to use the site config * feat: update privacy email * chore: Anna's suggestion to loop through object instead of keys
15 lines
466 B
Ruby
15 lines
466 B
Ruby
class ErrorMessageCleaner
|
|
attr_accessor :error_message
|
|
|
|
def initialize(error_message)
|
|
@error_message = error_message
|
|
end
|
|
|
|
def clean
|
|
if error_message.include? "expected key while parsing a block mapping at line"
|
|
"There was a problem parsing the front-matter YAML. Perhaps you need to escape a quote or a colon or something. Email #{SiteConfig.email_addresses[:default]} if you are having trouble."
|
|
else
|
|
error_message
|
|
end
|
|
end
|
|
end
|