From 8c904d232eaa39307b0d52605fcef6e87c4f0635 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 16 Feb 2024 09:02:16 -0400 Subject: data: track: comment on self-inspecting album in custom inspect --- src/data/things/track.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/data/things') diff --git a/src/data/things/track.js b/src/data/things/track.js index 9b2dbd6d..93beb5e2 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -516,7 +516,11 @@ export class Track extends Thing { if (depth >= 0) { try { album = this.album; - } catch (_error) {} + } catch (_error) { + // Computing album might crash for any reason, which we don't want to + // distract from another error we might be trying to work out at the + // moment (for which debugging might involve inspecting this track!). + } album ??= this.dataSourceAlbum; } -- cgit 1.3.0-6-gf8a5