fix: Remove undefined error reference in fetchWithProxy catch block

- Fix reference to undefined 'error' variable in proxy error handler
- Use only proxyError.message in the error message

Co-authored-by: trevor1969 <trevor1969@users.noreply.github.com>
This commit is contained in:
Vibe Nuage Agent
2026-06-04 15:32:44 +00:00
parent 6addc628e8
commit 7b9f509728

2
app.js
View File

@ -75,7 +75,7 @@ class NextcloudStorage {
} catch (proxyError) { } catch (proxyError) {
this.useProxy = false; this.useProxy = false;
console.error('Proxy connection also failed:', proxyError); console.error('Proxy connection also failed:', proxyError);
throw new Error(`Both direct and proxy connections failed: ${error.message || ''} ${proxyError.message || ''}`); throw new Error(`Both direct and proxy connections failed: ${proxyError.message || ''}`);
} }
} }