Skip to content

Commit

Permalink
chore: capture correct status code on faas pod time out (#2831)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar authored Nov 16, 2023
1 parent ff80b88 commit e5f8714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const executeFaasFunction = async (
}

if (error.statusCode === 504) {
throw new RespStatusError(`${name} timed out`);
throw new RespStatusError(`${name} timed out`, 504);
}

throw error;
Expand Down

0 comments on commit e5f8714

Please sign in to comment.