Skip to content

Commit 754c2ae

Browse files
carlprattteoli2003
andauthored
fix: correct error variable name (#121)
* fix: correct error variable name When decoding fails, the error log crashes the app due to mis-named error variable. * Update voice-change-o-matic/scripts/app.js --------- Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
1 parent cf2dcf0 commit 754c2ae

File tree

1 file changed

+1
-1
lines changed
  • voice-change-o-matic/scripts

1 file changed

+1
-1
lines changed

voice-change-o-matic/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function init() {
5353
convolver.buffer = decodedAudio;
5454
} catch (error) {
5555
console.error(
56-
`Unable to fetch the audio file: ${name} Error: ${err.message}`
56+
`Unable to fetch the audio file: ${name} Error: ${error.message}`
5757
);
5858
}
5959

0 commit comments

Comments
 (0)