3-Round-Stones / callimachus

Callimachus is a highly scalable platform for creating and running data-driven websites
Other
95 stars 24 forks source link

Error mechanism needs a better way to get the error from a response #203

Closed edwardsph closed 9 years ago

edwardsph commented 9 years ago

When an error occurs, say after saving a file that doesn't parse, the error message is returned in the page with the structure <div class="container"><h1>message</h1></div>. The display mechanism for errors appears to get the content of the first <h1>. This is open to problems if, for example, a developer changes the layout and includes a heading in that. The workaround is obviously to avoid <h1> in the layout but it would be better to more uniquely identify error content in the response from the server. This was seen in Callimachus Enterprise 1.4 but has been a potential issue for a long time.