feat #6235 Added device param
gitea/worker-time-control/pipeline/head This commit looks good
Details
gitea/worker-time-control/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2e310bc06c
commit
b16ca6b83f
|
@ -97,10 +97,17 @@ $.ajaxPrefilter(function(xhr) {
|
||||||
mensaje = 'Ajax request aborted';
|
mensaje = 'Ajax request aborted';
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
|
if (xhr?.responseJSON?.error?.name == 'UserError') {
|
||||||
|
mensaje = xhr.responseJSON.error.message;
|
||||||
|
break;
|
||||||
|
}
|
||||||
switch (xhr.status){
|
switch (xhr.status){
|
||||||
case 0:
|
case 0:
|
||||||
mensaje = 'Not connect: Verify Network';
|
mensaje = 'Not connect: Verify Network';
|
||||||
break;
|
break;
|
||||||
|
case 504:
|
||||||
|
mensaje = 'No se ha podido conectar con Salix, consulta con informática';
|
||||||
|
break;
|
||||||
case 555:
|
case 555:
|
||||||
mensaje = JSON.parse(xhr.statusText).Message;
|
mensaje = JSON.parse(xhr.statusText).Message;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue