mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
import { ViewsPath } from "./Config";
|
|
import { ExpressResponse } from "Common/Server/Utils/Express";
|
|
|
|
export default class ServerErrorUtil {
|
|
public static renderServerError(res: ExpressResponse): void {
|
|
res.status(500);
|
|
res.render(`${ViewsPath}/server-error.ejs`, {
|
|
footerCards: false,
|
|
support: false,
|
|
cta: false,
|
|
blackLogo: false,
|
|
requestDemoCta: false,
|
|
});
|
|
}
|
|
}
|