HTTP codes for get_room_info API call

master
Daniel Berteaud 10 years ago
parent 6e93589a75
commit f57cc57bb1
  1. 6
      public/js/vroom.js
  2. 6
      vroom.pl

@ -640,7 +640,13 @@ function initVroom(room) {
},
async: false,
error: function(data){
data = data.responseJSON;
if (data.msg){
$.notify(data.msg, 'error');
}
else{
$.notify(locale.ERROR_OCCURRED, 'error');
}
},
success: function(data){
// Notify others if our role changed

@ -1668,8 +1668,10 @@ any '/api' => sub {
return $self->render(
json => {
status => 'error',
msg => $self->l('ERROR_OCCURRED')
}
msg => $self->l('ERROR_OCCURRED'),
err => 'ERROR_OCCURRED'
},
status => 503
);
}
}

Loading…
Cancel
Save