Skip to content

Commit 15cd03e

Browse files
author
Florian CHAZAL
committed
fix: throw proper error
1 parent 42f081d commit 15cd03e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/orchestrator.checkCanary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports.handler = async (event: synthetics.Canary): Promise<AWS.Synthetics.Canar
2626
}
2727
} catch (error) {
2828
console.error(`Something went wrong checking ${event.canaryName}: ${error}`);
29-
throw new Error(error);
29+
throw error;
3030
}
3131
return result;
3232
};

test/unit/__snapshots__/orchestrator.test.ts.snap

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)