Private
Public Access
Keep the compile-time generic marker as *. Update the compiler, stdlib, fixtures, documentation and editor grammars without a dynamic type alias. Preserve native identifiers and historical work and patch records. Replace the port_spawn environment argument with cwd/env options. Report failed directory changes through EXIT 127 with cwd_failed. Compile every API example and add a complete Pi RPC service example. Service examples compile without execution or output blocks. Update ABI versions and audited golden artifacts.
14 lines
875 B
Plaintext
14 lines
875 B
Plaintext
function RENDER(request : any)
|
|
{
|
|
var error := request.call.error
|
|
request.out.headers["Content-Type"] = "text/html; charset=utf-8"
|
|
print("<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"></meta><title>Build failed</title><style>body{font-family:system-ui,sans-serif;background:#1c1017;color:#fde8e8;margin:0;min-height:100vh}main{max-width:60rem;margin:0 auto;padding:3rem 2rem}h1{color:#f87171}code{color:#fca5a5}pre{background:#0f0a0d;color:#e2e8f0;padding:1rem;border-radius:.5rem;overflow-x:auto}.meta{color:#9f8a93;font-size:.9rem}</style></head><body><main><h1>This page failed to build</h1><p>Source: <code>",
|
|
html_escape(string(error.source)),
|
|
"</code></p><p class=\"meta\">Generated C++: <code>",
|
|
html_escape(string(error.generated_cpp)),
|
|
"</code></p><pre>",
|
|
html_escape(string(error.compiler_output)),
|
|
"</pre></main></body></html>"
|
|
)
|
|
}
|