summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/actions.js b/src/actions.js
index c6e04c0..1feb9c1 100644
--- a/src/actions.js
+++ b/src/actions.js
@@ -27,11 +27,7 @@ function post (config, posts) {
 function taxonGenerator (config, term, items) {
   return async function (ctx, next) {
     const value = ctx.params.value
-    ctx.assert(
-      items.has(ctx.params.value),
-      404,
-      `Could not find ${term} ${value}`
-    )
+    ctx.assert(items.has(ctx.params.value), 404, `${term} ${value} not found`)
 
     const taxonItems = toArrayStream(items.get(value))