Skip to content

Commit

Permalink
fix: throw proper error
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian CHAZAL committed Sep 1, 2021
1 parent 42f081d commit 15cd03e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/orchestrator.checkCanary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports.handler = async (event: synthetics.Canary): Promise<AWS.Synthetics.Canar
}
} catch (error) {
console.error(`Something went wrong checking ${event.canaryName}: ${error}`);
throw new Error(error);
throw error;
}
return result;
};
Expand Down
30 changes: 15 additions & 15 deletions test/unit/__snapshots__/orchestrator.test.ts.snap

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

0 comments on commit 15cd03e

Please sign in to comment.