www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 9f95a2d1c6fe6fa07458a5db1c57bf7b950e05d2
parent ca7844d2c4499b6338e388f45539e09e9189cb41
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu, 22 Aug 2024 10:44:23 -0700

Give more context to some errors

Diffstat:
Mfiles/floorplans/floorplan/backend.js | 2+-
Mfiles/floorplans/floorplan/editor.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js @@ -392,7 +392,7 @@ export class FloorplanBackend { console.debug("Backend.removeData", type, key) if (!this.cache[type][key]) { - throw new Error("Expected " + key + " to exist") + throw new Error("Expected " + type + "/" + key + " to exist") } if (!options.nodiff) { this.addDiff("remove", diffPath(type, key), null, this.cache[type][key], options) diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -497,7 +497,7 @@ export class FloorplanEditor { } if (!ops[diff.op]) { - throw new Error("Unexpected patch operation") + throw new Error(diff.op + ": Unexpected patch operation") } let ref = backend.parsePath(diff.path)