pico-engine
pico-engine copied to clipboard
Perhaps be a bit more robust in error handling in a function responding to a query?
Background: I'm using picos by themselves in a web app dev stack (see blog PicoStack.blogspot.com).
PHP (the most popular web app stack) will produce a web page up to the point at which it gets an error on the back end.
A pico query on the other hand must produce the entire string of HTML before any of it gets sent to the browser. If anything fails, the browser receives nothing.
It would be nice to better support this usage of picos.
As an example, here is the output of a PHP script which fails at a certain point:
<html>
...
<body>
...
<div class="page-content">
<div id="content" role="main" class="wrapper clearfix ">
<p id="id01">
<b>Password Information for adm.b1conrad - Expiration:
Notice how abruptly the HTML ends, at the point where the PHP script had an unexpected failure and stopped sending the response.
Notice all the unclosed tags! html
body
div
div
p
b
May be related to issue #566 ?