Skip to content

Commit

Permalink
Merge pull request #1681 from pinkiebell/1678
Browse files Browse the repository at this point in the history
Display an error banner on network error on start-/stop work..
  • Loading branch information
SaptakS authored Jul 25, 2018
2 parents 56930c9 + 13bbe34 commit 11a3150
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/v2/js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,11 @@ var mutate_interest = function(bounty_pk, direction, data) {
}
return false;
}).fail(function(result) {
alert(result.responseJSON.error);
_alert({ message: gettext('Network or API error. Please reload the page and try again.') }, 'error');

if (result) {
console.log(result.responseJSON.error);
}
});
};

Expand Down

0 comments on commit 11a3150

Please sign in to comment.