1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Don't swallow errors in promises

This commit is contained in:
Dominik Schmidt 2015-03-03 22:10:27 +01:00
parent 16df4d958e
commit 9625c9a072

View File

@ -42,6 +42,13 @@ Tomahawk.apiVersion = "0.2.2";
// install RSVP.Promise as global Promise
if(window.Promise === undefined) {
window.Promise = window.RSVP.Promise;
window.RSVP.on('error', function(reason) {
if (reason) {
console.error(reason.message, reason);
} else {
console.error('Error: error thrown from RSVP but it was empty');
}
});
}
/**