mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
Don't redirect on server error. Fixes #570
This commit is contained in:
parent
99f652422f
commit
5ffb388e83
|
@ -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