[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: Don't mutate original error when merging cause stack for logging

FoxxMD (Jan 7, 2026, 10:47 PM UTC) 528d269d 5a642c4c

+8 -1
+8 -1
src/backend/common/errors/MSErrors.ts
··· 70 70 name = 'Skip Transform Stage'; 71 71 } 72 72 73 + export class StagePrerequisiteError extends SimpleError { 74 + name = 'Stage Prerequisite'; 75 + } 76 + 73 77 export interface HasSimpleError extends Error { 74 78 simple: boolean 75 79 } ··· 84 88 export const mergeSimpleError = (err: Error): Error => { 85 89 const anySimple = findCauseByFunc<SimpleError>(err, (e) => isSimpleError(e)); 86 90 if(anySimple && anySimple.simple) { 87 - return mergeErrorCause(err); 91 + // mergeErrorCause mutates the argument 92 + // and we want to be able to do more cause/error parsing after merging for logging 93 + // so give it a copy instead of the original 94 + return mergeErrorCause(structuredClone(err)); 88 95 } 89 96 return err; 90 97 }