Fail unresolved component renders with HTTP 500
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user