Skip to content

Commit

Permalink
chore: update error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Feb 6, 2020
1 parent 9c45d53 commit a11aadd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/assets/v2/js/pages/tribe-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,16 @@ $('[data-createbountyrequest]').on('click', function() {
_alert('Bounty Request has been created');
location.reload();
} else {
_alert('Error creating bounty request. Try again later', 'error');
_alert(`Error creating bounty request as ${response.message}`, 'error');
console.error(response.message);
}

}).fail(function(error) {
_alert('Error creating bounty request. Try again later', 'error');
_alert(`Error creating bounty request as ${error}`, 'error');
console.error('error: unable to creating bounty request', error);
});
}).catch(error => {
_alert(`Error creating bounty request. Try again later. ${error}`, 'error');
_alert(`Error creating bounty request as ${error}`, 'error');
console.error('error: unable to creating bounty request', error);
});
});
Expand All @@ -238,12 +238,12 @@ $('[data-cancelbountyrequest]').on('click', function() {
_alert('Bounty Request has been rejected');
$(`#${bounty_request_id}`).hide();
} else {
_alert('Error rejecting bounty request. Try again later', 'error');
_alert(`Error rejecting bounty request as ${response.message}`, 'error');
console.error(response.message);
}

}).fail(function(error) {
_alert('Error rejecting bounty request. Try again later', 'error');
_alert(`Error rejecting bounty request. ${error}`, 'error');
console.error('error: unable to reject bounty request', error);
});
});

0 comments on commit a11aadd

Please sign in to comment.