mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Don't swallow errors in promises
This commit is contained in:
@@ -42,6 +42,13 @@ Tomahawk.apiVersion = "0.2.2";
|
|||||||
// install RSVP.Promise as global Promise
|
// install RSVP.Promise as global Promise
|
||||||
if(window.Promise === undefined) {
|
if(window.Promise === undefined) {
|
||||||
window.Promise = window.RSVP.Promise;
|
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');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user