From 3714ecb88d74c8754f352ef0eb77b68a717c05e7 Mon Sep 17 00:00:00 2001 From: tali Date: Fri, 19 Jan 2024 14:14:49 -0500 Subject: [PATCH] N2.Scene.get fail message --- src/n2/n2.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/n2/n2.ml b/src/n2/n2.ml index 8ef311b..89ebf98 100644 --- a/src/n2/n2.ml +++ b/src/n2/n2.ml @@ -267,5 +267,6 @@ module Scene = struct raise (S2.Asset.Error (path, "parse error: " ^ msg)) let get t name = - Hashtbl.find t.objs name + try Hashtbl.find t.objs name + with Not_found -> Format.ksprintf failwith "no node %S in scene" name end