diff --git a/modules/core/src/api/infrastructure/express/errors/internal-api-error.ts b/modules/core/src/api/infrastructure/express/errors/internal-api-error.ts index acf69080..a5f99cea 100644 --- a/modules/core/src/api/infrastructure/express/errors/internal-api-error.ts +++ b/modules/core/src/api/infrastructure/express/errors/internal-api-error.ts @@ -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", diff --git a/modules/core/src/api/infrastructure/express/express-controller.ts b/modules/core/src/api/infrastructure/express/express-controller.ts index 16cc1333..bcae93c1 100644 --- a/modules/core/src/api/infrastructure/express/express-controller.ts +++ b/modules/core/src/api/infrastructure/express/express-controller.ts @@ -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")); } diff --git a/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx b/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx index d8538824..7d75e5c8 100644 --- a/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx +++ b/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx @@ -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 ( - <> + {
hola
- +
); };