Skip to content

Commit

Permalink
fix: correct error variable name (#121)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
carlpratt and teoli2003 authored Dec 21, 2023
1 parent cf2dcf0 commit 754c2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voice-change-o-matic/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function init() {
convolver.buffer = decodedAudio;
} catch (error) {
console.error(
`Unable to fetch the audio file: ${name} Error: ${err.message}`
`Unable to fetch the audio file: ${name} Error: ${error.message}`
);
}

Expand Down

0 comments on commit 754c2ae

Please sign in to comment.