all repos — archive/homestead @ bfa5ccaec4cb601836c47a43faf6ac79f018b81b

My future indieweb platform

text: improve wording of taxonomy 404

Alan Pearce
commit

bfa5ccaec4cb601836c47a43faf6ac79f018b81b

parent

dd819c45b58088f9a98384ab237268d865836fe0

1 file changed, 1 insertion(+), 5 deletions(-)

changed files
M src/actions.jssrc/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))