mirror of
https://github.com/frappe/books.git
synced 2024-12-22 10:58:59 +00:00
fix: catch more network errors
- prevent dupe account names in Catalan
This commit is contained in:
parent
11a10a8f48
commit
69bf6a080d
@ -77,10 +77,12 @@ export function rendererLog(main: Main, ...args: unknown[]) {
|
||||
export function isNetworkError(error: Error) {
|
||||
switch (error?.message) {
|
||||
case 'net::ERR_INTERNET_DISCONNECTED':
|
||||
case 'net::ERR_NETWORK_CHANGED':
|
||||
case 'net::ERR_PROXY_CONNECTION_FAILED':
|
||||
case 'net::ERR_CONNECTION_RESET':
|
||||
case 'net::ERR_CONNECTION_CLOSE':
|
||||
case 'net::ERR_NAME_NOT_RESOLVED':
|
||||
case 'net::ERR_TIMED_OUT':
|
||||
case 'net::ERR_CONNECTION_TIMED_OUT':
|
||||
return true;
|
||||
default:
|
||||
|
@ -465,7 +465,7 @@ Role,Rol,
|
||||
"Round Off Account","Round Off Account",
|
||||
Salary,Salari,
|
||||
Sales,Vendes,
|
||||
"Sales Expenses",Vendes,
|
||||
"Sales Expenses","Despeses de vendes",
|
||||
"Sales Invoice",,
|
||||
"Sales Invoice Item",,
|
||||
"Sales Invoice Settings",,
|
||||
|
|
Loading…
Reference in New Issue
Block a user