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

Client fixes and some tests #331

Merged
merged 1 commit into from
Dec 14, 2016
Merged

Client fixes and some tests #331

merged 1 commit into from
Dec 14, 2016

Conversation

matteofigus
Copy link
Member

There are some little issues with errors logging from the node client, specifically when template fetching fails from CDN request.

This PR is to ensure error is produced correctly.

@@ -54,7 +54,7 @@ module.exports = function(cache, renderTemplate){
fetchTemplateAndRender(action.apiResponse, options, function(err, html){
if(!!err){
var errorDetails = format('{0} ({1})', (err.response && err.response.error), err.status);
action.result.error = new Error(format(settings.serverRenderingFail, errorDetails));
action.result.error = new Error(format(settings.serverSideRenderingFail, errorDetails));
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a typo

Copy link
Collaborator

@federicomaffei federicomaffei left a comment

Choose a reason for hiding this comment

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

LGTM

@matteofigus matteofigus merged commit 8872d45 into master Dec 14, 2016
@matteofigus matteofigus deleted the client-errors branch December 14, 2016 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants