mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Get better audio error info
This commit is contained in:
parent
56f4a32792
commit
b98a9bbb45
1 changed files with 6 additions and 2 deletions
|
|
@ -52,8 +52,12 @@ export default class ElementSource {
|
|||
this.trigger("positionChange");
|
||||
});
|
||||
|
||||
this._audio.addEventListener("error", e => {
|
||||
Raven.captureException(e);
|
||||
this._audio.addEventListener("error", () => {
|
||||
Raven.captureMessage(
|
||||
`AudioElement Error ${this._audio.error.code}; details: ${
|
||||
this._audio.error.messagee
|
||||
}`
|
||||
);
|
||||
});
|
||||
|
||||
this._source = this._context.createMediaElementSource(this._audio);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue