aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-13 16:11:02 -0700
committerAdam Soltys <[email protected]>2026-11-13 16:11:02 -0700
commit74b7dece26e21cb67325b9b0d4880fb91e059a20 (patch)
treeba9ffc8bea77c35b796c22273a122922d80bb3fc
parent67e0a77d967ed1ea3cfb1aae0a09431dd27014aa (diff)
downloadcoinos-server-74b7dece26e21cb67325b9b0d4880fb91e059a20.tar.gz
coinos-server-74b7dece26e21cb67325b9b0d4880fb91e059a20.zip
ecash: answer a missing token with a plain error
Co-Authored-By: Claude Opus 5.5 <[email protected]>
-rw-r--r--routes/ecash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/ecash.ts b/routes/ecash.ts
index 995a8dce..e9c1cfdf 100644
--- a/routes/ecash.ts
+++ b/routes/ecash.ts
@@ -28,7 +28,7 @@ export default {
} = req;
try {
const token = await get(id);
- if (!token) fail("Ecash not found");
+ if (!token) return bail(res, "Ecash not found");
const status = await check(token);
res.send({ token, status });
} catch (e) {