mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 11:21:26 +00:00
parent
99f652422f
commit
a406a87146
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ server.get("/*", async (req, res) => {
|
|||
if (errCode == "instance_is_private") {
|
||||
return res.redirect(`/signup`);
|
||||
} else {
|
||||
return res.redirect(`/404?err=${errCode}`);
|
||||
return res.send(`404: ${errCode}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ server.get("/*", async (req, res) => {
|
|||
`);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
return res.redirect(`/404?err=${err}`);
|
||||
return res.send(`404: ${err}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue