Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #439 from adobe/conyu/timeout_spelling
Browse files Browse the repository at this point in the history
chore(log): corrected misspelling
  • Loading branch information
constanceyu authored Aug 12, 2019
2 parents f24dcfa + 6fddf12 commit deb7dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html/fetch-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function fetch(context, { secrets = {}, request, logger }) {
setdefault(context, 'response', {}).status = 404;
} else if ((e.response && e.response.elapsedTime && e.response.elapsedTime > timeout) || (e.cause && e.cause.code && (e.cause.code === 'ESOCKETTIMEDOUT' || e.cause.code === 'ETIMEDOUT'))) {
// return gateway timeout
logger.error(`Gateway timout of ${timeout} milliseconds exceeded for ${options.uri}`);
logger.error(`Gateway timeout of ${timeout} milliseconds exceeded for ${options.uri}`);
setdefault(context, 'response', {}).status = 504;
} else {
logger.error(`Error while fetching Markdown from ${options.uri} with the following `
Expand Down

0 comments on commit deb7dc6

Please sign in to comment.