From bfa5ccaec4cb601836c47a43faf6ac79f018b81b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 24 Jun 2017 22:25:16 +0200 Subject: text: improve wording of taxonomy 404 --- src/actions.js | 6 +----- 1 file changed, 1 insertion(+), 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)) -- cgit 1.4.1