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:
parent
16df4d958e
commit
9625c9a072
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user