commit 64a66c217147e54d40499763721f5f8df5865e6b
parent 879a4dc12f3da1f259032b9744fc2d194a46b3fe
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Tue, 17 Sep 2024 12:49:24 -0700
Fix error message
It could be too few underscores aswell. Leave ambiguous.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/backend/floorplan_data.go b/internal/backend/floorplan_data.go
@@ -753,7 +753,7 @@ func parsePath(p string) (ObjectID, error) {
func parseID(s string) (ObjectID, error) {
a := strings.Split(s, "_")
if len(a) != 2 {
- return ObjectID{}, errors.New(s + ": Invalid ID (too many underscores)")
+ return ObjectID{}, errors.New(s + ": Invalid ID")
}
seq, err := strconv.ParseInt(a[1], 10, 64)