From 268d3cd31f0c5883b62be0d69ff8a51b2d9aeeff Mon Sep 17 00:00:00 2001 From: Johnny Shankman`` Date: Sat, 16 Nov 2024 15:43:30 -0500 Subject: [PATCH] Reimplement log --- gapless5.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gapless5.js b/gapless5.js index c409ccc..4f08e81 100644 --- a/gapless5.js +++ b/gapless5.js @@ -1333,6 +1333,7 @@ function Gapless5(options = {}, deprecated = {}) { // eslint-disable-line no-unu this.removeTrack = (pointOrPath) => { const index = typeof pointOrPath === 'number' ? pointOrPath : this.findTrack(pointOrPath); if (index < 0 || index >= this.playlist.numTracks()) { + log.warn(`Cannot remove missing track at index: ${index}`); return; }