aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/error_utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils/src/error_utils.ts')
-rw-r--r--packages/utils/src/error_utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/utils/src/error_utils.ts b/packages/utils/src/error_utils.ts
new file mode 100644
index 000000000..735d3940b
--- /dev/null
+++ b/packages/utils/src/error_utils.ts
@@ -0,0 +1,5 @@
+export const errorUtils = {
+ spawnSwitchErr(name: string, value: any): Error {
+ return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
+ },
+};