summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2017-06-24 22:25:16 +0200
committerAlan Pearce2017-06-24 22:25:45 +0200
commitbfa5ccaec4cb601836c47a43faf6ac79f018b81b (patch)
tree00cc0d5a0b79c13adcc9351e4e97901ebf27c1b2 /src
parentdd819c45b58088f9a98384ab237268d865836fe0 (diff)
downloadhomestead-bfa5ccaec4cb601836c47a43faf6ac79f018b81b.tar.lz
homestead-bfa5ccaec4cb601836c47a43faf6ac79f018b81b.tar.zst
homestead-bfa5ccaec4cb601836c47a43faf6ac79f018b81b.zip
text: improve wording of taxonomy 404
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))