mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-25 18:36:24 +00:00
parent
99f652422f
commit
a406a87146
|
@ -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