mirror of
https://github.com/trevor1969/teatracker.git
synced 2026-08-09 10:41:59 +00:00
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:
2
app.js
2
app.js
@ -75,7 +75,7 @@ class NextcloudStorage {
|
||||
} catch (proxyError) {
|
||||
this.useProxy = false;
|
||||
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 || ''}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user