From 73ecdadeff01dc6f1ac0471cf117248afe49697e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 13 Oct 2026 18:40:04 +0200 Subject: [PATCH] use undefined error if the error is not hb --- client/homebrew/pages/vaultPage/vaultPage.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index d82d92f95..b64517083 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -99,7 +99,8 @@ const VaultPage = (props)=>{ const response = await request.get(`/api/vault/total?title=${title}&author=${author}&v3=${v3}&legacy=${legacy}`) .catch((error)=>{ - console.log('error at loadTotal: ', error); + console.log('error at loadTotal: '); + console.error(error); setError(error); updateStateWithBrews([], 1); }); @@ -441,7 +442,7 @@ const VaultPage = (props)=>{ if(error.HBErrorCode === undefined) { return (
-

{error.toString()}

+

Error: Unknown error

) } else {