From 817ad4fd02872a54f7102ca885b3675402763d75 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Tue, 23 Jan 2024 17:08:11 +0000 Subject: :recycle: Add more context to Error type. --- src/client-runtime.ffi.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client-runtime.ffi.mjs') diff --git a/src/client-runtime.ffi.mjs b/src/client-runtime.ffi.mjs index 13e3906..0b6c58f 100644 --- a/src/client-runtime.ffi.mjs +++ b/src/client-runtime.ffi.mjs @@ -19,7 +19,7 @@ export class LustreClientApplication { selector instanceof HTMLElement ? selector : document.querySelector(selector); - if (!root) return new Error(new ElementNotFound()); + if (!root) return new Error(new ElementNotFound(selector)); const app = new LustreClientApplication(init(flags), update, view, root); return new Ok((msg) => app.send(msg)); -- cgit v1.2.3