mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
navigate to "#ERROR" on urb.wALL blit
This commit is contained in:
parent
a0358c17d9
commit
73a060be5e
@ -110,6 +110,7 @@ window.urb.send = function(data,params,cb) { // or send(data, cb)
|
||||
this.qreq('post',url,params,true,function(err,data) {
|
||||
/* if(err) { $send.seqn--; }
|
||||
else */ if(data && data.data.fail && urb.wall !== false)
|
||||
document.location = "#ERROR"
|
||||
document.write("<pre>"+JSON.stringify(params.xyro)+"\n"
|
||||
+data.data.mess+"</pre>") // XX
|
||||
if(cb) { cb.apply(this,arguments); }
|
||||
|
Loading…
Reference in New Issue
Block a user