feat #6235 Added device param
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-01-31 09:04:49 +01:00
parent 2e310bc06c
commit b16ca6b83f
1 changed files with 8 additions and 1 deletions

View File

@ -97,13 +97,20 @@ $.ajaxPrefilter(function(xhr) {
mensaje = 'Ajax request aborted';
break;
case 'error':
if (xhr?.responseJSON?.error?.name == 'UserError') {
mensaje = xhr.responseJSON.error.message;
break;
}
switch (xhr.status){
case 0:
mensaje = 'Not connect: Verify Network';
break;
case 504:
mensaje = 'No se ha podido conectar con Salix, consulta con informática';
break;
case 555:
mensaje = JSON.parse(xhr.statusText).Message;
break;
break;
default:
if (xhr.status >= 400 && xhr.status < 500)
mensaje = xhr.statusText;