Fail unresolved unit renders with HTTP 500
This commit is contained in:
@@ -727,6 +727,7 @@ void unit_render(String file_name, Request& request)
|
||||
s32 slot = wasm_resolve_target(unit_name, handler, &resolved);
|
||||
if(!slot)
|
||||
{
|
||||
request.set_status(500, "Internal Server Error");
|
||||
print(component_error_banner("unit not found: " + trim(file_name)));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user