From 5d420e3e08bec660c3d3b16a26da5e7b6a88ebb6 Mon Sep 17 00:00:00 2001 From: Zersk Date: Tue, 3 Dec 2024 01:09:19 +0100 Subject: [PATCH] Simplify error message formatting in checkout component. Removed the HTTP status code from the error message to provide a clearer and more user-friendly message. This change maintains focus on the error details and improves readability of the error notifications for end-users. --- archigator/src/app/checkout/checkout.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archigator/src/app/checkout/checkout.component.ts b/archigator/src/app/checkout/checkout.component.ts index 534cb75..e2cf34e 100644 --- a/archigator/src/app/checkout/checkout.component.ts +++ b/archigator/src/app/checkout/checkout.component.ts @@ -219,7 +219,7 @@ export class CheckoutComponent implements OnInit { const errDetail = error.error?.detail || 'An error occurred'; - this.errorMessage = `Error ${error.status}: ${errDetail}`; + this.errorMessage = `${errDetail}`; this.spinLoader = false; }