mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
import { ViewsPath } from "./Config";
|
|
import { ExpressResponse } from "CommonServer/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,
|
|
});
|
|
}
|
|
}
|