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

Refs #4478 - API doc strings marked for translation #1626

Closed
wants to merge 1 commit into from

Conversation

mbacovsky
Copy link
Member

No description provided.

@domcleal
Copy link
Contributor

@mbacovsky
Copy link
Member Author

Same here. The method is returning: ERF42-3624 [Foreman::Exception]: A problem occurred when detecting host type: uninitialized constant Host::Invalid instead of expected ERF42-2640. Investigating further...

end
rescue => e
raise ::Foreman::Exception.new("A problem occurred when detecting host type: #{e.message}")
raise ::Foreman::Exception.new(N_("A problem occurred when detecting host type: %s"), e.message)
Copy link
Member Author

Choose a reason for hiding this comment

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

@domcleal , the formatting of the message changed. The e.message is now parameter of the message and not its part. Error codes are computed from the message without parameters so the code for this message is different. I fixed it in the tests. However I'm not sure if this is proper fix or if it violates some error codes rules somehow.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mbacovsky ah ok, thanks. I think that's unavoidable for now, let's just change it. Maybe one day we can implement some kind of override for error codes so we can keep them static.

Copy link
Member

Choose a reason for hiding this comment

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

This case is a simple one - it was wrong and Martin fixed it, therefore the code must change. I'd rather fix the error code on the wiki than introducing overridable codes.

@domcleal
Copy link
Contributor

Thanks @mbacovsky, merged as 2656873 and Transifex updated.

@domcleal domcleal closed this Jul 31, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants