Mercurial > urweb
view tests/onerrorJs.ur @ 2188:61866c765485
Better client-side error messages for RPC failures
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 01 Nov 2015 12:23:44 -0500 |
parents | 27e731a65934 |
children |
line wrap: on
line source
fun main n = case n of 0 => error <xml>Zero is bad! <button value="Capische?" onclick={alert "GOOD!"}/></xml> | _ => return <xml/>