About: Descriptive errors

This commit is contained in:
LoveEevee
2018-12-04 01:23:11 +03:00
parent a0197e768b
commit 51f306d1c7
6 changed files with 34 additions and 14 deletions

View File

@@ -10,6 +10,8 @@
}).then(response => {
return new Promise((resolve, reject) => {
return this.context.decodeAudioData(response, resolve, reject)
}).catch(error => {
throw [error, url]
})
}).then(buffer => {
return new Sound(gain || {soundBuffer: this}, buffer)