2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: catch more network errors

- prevent dupe account names in Catalan
This commit is contained in:
18alantom 2022-09-20 21:17:43 +05:30
parent 11a10a8f48
commit 69bf6a080d
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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",,

1 ${0} ${1} already exists. ${0} ${1} ja existeix.
465 Round Off Account Round Off Account
466 Salary Salari
467 Sales Vendes
468 Sales Expenses Vendes Despeses de vendes
469 Sales Invoice
470 Sales Invoice Item
471 Sales Invoice Settings