-
Notifications
You must be signed in to change notification settings - Fork 83
Globalize using strong-globalize #66
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
Conversation
lib/rest-builder.js
Outdated
| RequestBuilder.prototype._request = function(uri, options, cb) { | ||
| if (typeof uri === 'undefined') { | ||
| throw new Error('undefined is not a valid uri or options object.'); | ||
| throw new Error(g.f('undefined is not a valid uri or options object.')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{undefined}} {{uri}} {{options}} and possibly {{object}}
|
One line needs resolution, other comment is a nitpick. Otherwise LGTM. |
|
@slnode test please |
|
LGTM |
|
@slnode test please |
lib/rest-connector.js
Outdated
| } | ||
| } else { | ||
| callback && callback('Error response: ' + response.statusCode, body); | ||
| var err = g.f('Error response: %s %j', response.statusCode, body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%d for statusCode which is a number I assume?
|
Two minor comments, otherwise LGTM. |
Connect to strongloop/loopback/issues/2422