This commit is contained in:
Cadence Fish
2020-01-29 01:17:32 +13:00
parent 29e56134ce
commit e8e565605f
3 changed files with 15 additions and 6 deletions

View File

@@ -15,7 +15,8 @@ module.exports = [
return render(400, "pug/friendlyerror.pug", {
statusCode: 400,
title: "Bad request",
message: "Expected a username."
message: "Expected a username",
explanation: "Write /u/{username} or /u?u={username}."
})
}
}
@@ -54,7 +55,7 @@ module.exports = [
return {
statusCode: 400,
contentType: "text/html",
content: "That page does not exist"
content: "That page does not exist."
}
}
}).catch(error => {
@@ -80,7 +81,8 @@ module.exports = [
return render(400, "pug/friendlyerror.pug", {
statusCode: 400,
title: "Bad request",
message: "Expected a username."
message: "Expected a shortcode",
explanation: "Write /p/{shortcode} or /p?u={shortcode}."
})
}
}