.
This commit is contained in:
parent
567c9d9730
commit
f23ee948f4
@ -2,6 +2,7 @@ import { ApiError } from "./api-error";
|
||||
|
||||
export class InternalApiError extends ApiError {
|
||||
constructor(detail: string, title?: string) {
|
||||
console.trace("Internal server error:", detail);
|
||||
super({
|
||||
status: 500,
|
||||
title: title ?? "Internal Server Error",
|
||||
|
||||
@ -178,6 +178,7 @@ export abstract class ExpressController {
|
||||
}
|
||||
|
||||
protected internalServerError(message?: string) {
|
||||
console.trace("Internal server error:", message);
|
||||
return this.handleApiError(new InternalApiError(message ?? "Internal Server Error"));
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { PageHeader } from "@erp/core/components";
|
||||
import { UnsavedChangesProvider } from "@erp/core/hooks";
|
||||
import { AppContent, AppHeader } from "@repo/rdx-ui/components";
|
||||
import { Button } from "@repo/shadcn-ui/components";
|
||||
import { PlusIcon } from "lucide-react";
|
||||
@ -11,7 +12,7 @@ export const ProformaCreatePage = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<>
|
||||
<UnsavedChangesProvider isDirty={true}>
|
||||
<AppHeader>
|
||||
<PageHeader
|
||||
description={t("pages.proformas.list.description")}
|
||||
@ -42,6 +43,6 @@ export const ProformaCreatePage = () => {
|
||||
</div>
|
||||
<div className="flex flex-1 flex-col gap-4 p-4">hola</div>
|
||||
</AppContent>
|
||||
</>
|
||||
</UnsavedChangesProvider>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user