Skip to content

Commit 05c3c0b

Browse files
committed
build lib
1 parent 739d5d2 commit 05c3c0b

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

lib/p5.sound.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.sound.js v0.2.16 2015-11-23 */
1+
/*! p5.sound.js v0.2.16 2015-11-24 */
22
(function (root, factory) {
33
if (typeof define === 'function' && define.amd)
44
define('p5.sound', ['p5'], function (p5) { (factory(p5));});
@@ -930,7 +930,7 @@ soundfile = function () {
930930
err.msg = msg;
931931
errorCallback(err);
932932
} else {
933-
throw err;
933+
console.error(msg + '\n The error stack trace includes: \n' + err.stack);
934934
}
935935
});
936936
} else {
@@ -940,7 +940,7 @@ soundfile = function () {
940940
err.message = msg;
941941
errorCallback(err);
942942
} else {
943-
throw err;
943+
console.error(msg + '\n The error stack trace includes: \n' + err.stack);
944944
}
945945
}
946946
};
@@ -952,15 +952,10 @@ soundfile = function () {
952952
err.message = msg;
953953
errorCallback(err);
954954
} else {
955-
// console.error(msg +'\n The error stack trace includes: \n' + err.stack);
956-
throw err;
955+
console.error(msg + '\n The error stack trace includes: \n' + err.stack);
957956
}
958957
};
959-
try {
960-
request.send();
961-
} catch (e) {
962-
console.log('got an errrr');
963-
}
958+
request.send();
964959
} else if (this.file != undefined) {
965960
var reader = new FileReader();
966961
var self = this;

0 commit comments

Comments
 (0)