text: improve wording of taxonomy 404
1 file changed, 1 insertion(+), 5 deletions(-)
changed files
M src/actions.js → src/actions.js
@@ -27,11 +27,7 @@ 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))