pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

Perhaps be a bit more robust in error handling in a function responding to a query?

Open b1conrad opened this issue 2 years ago • 2 comments

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.

b1conrad avatar Jun 02 '22 20:06 b1conrad

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

b1conrad avatar Jun 02 '22 20:06 b1conrad

May be related to issue #566 ?

b1conrad avatar Jun 24 '22 04:06 b1conrad