From f60346777f56b1a51437330b914930d807e61491 Mon Sep 17 00:00:00 2001 From: "Carlton Nunes Desouza (CJ)" <63428874+carltonLND@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:41:18 +0100 Subject: [PATCH 1/2] Update error message to playMode Error throwing when using playMode with an invalid string does not mention "untildone" as an option. --- src/soundfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soundfile.js b/src/soundfile.js index a524777a..c7984819 100644 --- a/src/soundfile.js +++ b/src/soundfile.js @@ -527,7 +527,7 @@ class SoundFile { if (s === 'restart' || s === 'sustain' || s === 'untildone') { this.mode = s; } else { - throw 'Invalid play mode. Must be either "restart" or "sustain"'; + throw 'Invalid play mode. Must be either "restart", "sustain" or "untildone'; } } From c81841e3c1528fdb266b56bf66bd9a24157e5bf8 Mon Sep 17 00:00:00 2001 From: "Carlton Nunes Desouza (CJ)" <63428874+carltonLND@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:23:18 +0100 Subject: [PATCH 2/2] Fixed minor typo in console.log --- src/soundfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soundfile.js b/src/soundfile.js index c7984819..115bbe73 100644 --- a/src/soundfile.js +++ b/src/soundfile.js @@ -527,7 +527,7 @@ class SoundFile { if (s === 'restart' || s === 'sustain' || s === 'untildone') { this.mode = s; } else { - throw 'Invalid play mode. Must be either "restart", "sustain" or "untildone'; + throw 'Invalid play mode. Must be either "restart", "sustain" or "untildone"'; } }