Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message on email preview #3607

Merged
merged 2 commits into from
May 8, 2020
Merged

Conversation

coorasse
Copy link
Contributor

@coorasse coorasse commented May 5, 2020

Email preview had a wrong error message (typo)

Email preview had a wrong error message (typo)
@@ -5,7 +5,7 @@ class MailerPreviews
class CartonPreview < ActionMailer::Preview
def shipped
carton = Carton.joins(:orders).last
raise "Your database needs at one shipped order with a carton to render this preview" unless carton
raise "Your database needs at least one shipped order with a carton to render this preview" unless carton

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @coorasse

@aldesantis
Copy link
Member

Rerunning the CI here since the failure is not related.

@spaghetticode spaghetticode merged commit 354e249 into solidusio:master May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants