From 4abdb66f7d7a7a50e326e9e23497698640642ad1 Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Mon, 17 Nov 2025 08:59:20 +0200 Subject: [PATCH] Return error detail first --- Client/app/context/AuthContext.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Client/app/context/AuthContext.tsx b/Client/app/context/AuthContext.tsx index de13c28..5cd051a 100644 --- a/Client/app/context/AuthContext.tsx +++ b/Client/app/context/AuthContext.tsx @@ -12,6 +12,10 @@ export const getApiErrorMessage = (error: any): string => { } } + if (error && error.detail) { + return error.detail; + } + if (error && error.title) { return error.title; }