aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-23 17:10:09 +0000
committerAdam Soltys <[email protected]>2024-10-23 17:10:09 +0000
commit4a8fab2201253c53483ef33e6418967129c99463 (patch)
treedb9189f78d494b6881ae7d8deef47b99540d447f
parentbab9ba9bec1d646cc228168d7238c1cd232fd180 (diff)
downloadcoinos-server-4a8fab2201253c53483ef33e6418967129c99463.tar.gz
coinos-server-4a8fab2201253c53483ef33e6418967129c99463.zip
log invalid type
-rw-r--r--lib/invoices.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index a17288ca..f2653d74 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -91,7 +91,7 @@ export let generate = async ({ invoice, user }) => {
} else if (type === types.internal) {
hash = id;
} else {
- fail("unrecognized type");
+ fail("unrecognized type", type);
}
invoice = {