Skip to content

Commit

Permalink
consistent error messages: failure of -> failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Dec 23, 2019
1 parent 253e22d commit 6cc066b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/moon-cli/dist/moon-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
logError("Invalid download HTTP response.\n\nAttempted to download template:\n\t" + res.headers.location + "\n\nReceived error HTTP status code:\n\t" + statusCode + "\n\nExpected success HTTP status code (200-299).");
}
}).on("error", function (error) {
logError("Failure of download HTTP request.\n\nAttempted to download template:\n\t" + res.headers.location + "\n\nReceived error:\n\t" + error + "\n\nExpected successful HTTP request.");
logError("Failed download HTTP request.\n\nAttempted to download template:\n\t" + res.headers.location + "\n\nReceived error:\n\t" + error + "\n\nExpected successful HTTP request.");
});
} else {
logError("Invalid archive link HTTP response.\n\nAttempted to fetch archive link for template:\n\thttps://" + archive.host + archive.path + "\n\nReceived error HTTP status code:\n\t" + statusCode + "\n\nExpected redirect HTTP status code (300-399).");
}
}).on("error", function (error) {
logError("Failure of archive link HTTP request.\n\nAttempted to fetch archive link for template:\n\thttps://" + archive.host + archive.path + "\n\nReceived error:\n\t" + error + "\n\nExpected successful HTTP request.");
logError("Failed archive link HTTP request.\n\nAttempted to fetch archive link for template:\n\thttps://" + archive.host + archive.path + "\n\nReceived error:\n\t" + error + "\n\nExpected successful HTTP request.");
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/moon-cli/dist/moon-cli.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/moon-cli/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Received error HTTP status code:
Expected success HTTP status code (200-299).`);
}
}).on("error", error => {
logError(`Failure of download HTTP request.
logError(`Failed download HTTP request.
Attempted to download template:
${res.headers.location}
Expand All @@ -131,7 +131,7 @@ Received error HTTP status code:
Expected redirect HTTP status code (300-399).`);
}
}).on("error", error => {
logError(`Failure of archive link HTTP request.
logError(`Failed archive link HTTP request.
Attempted to fetch archive link for template:
https://${archive.host}${archive.path}
Expand Down

0 comments on commit 6cc066b

Please sign in to comment.