Fail unresolved component renders with HTTP 500

This commit is contained in:
udo
2026-07-18 16:55:42 +00:00
parent 39d4b41e2b
commit 3cbe6f50d4
5 changed files with 29 additions and 0 deletions
+1
View File
@@ -686,6 +686,7 @@ static void component_render_with_props(String name, DValue& props, Request& req
s32 slot = wasm_resolve_target(file_name, handler, &resolved);
if(!slot)
{
request.set_status(500, "Internal Server Error");
print(component_error_banner("component not found: " + trim(name)));
return;
}