mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
Merge pull request #1154 from urbit/arvo-warn
adds Arvo %warn error notification event handler
This commit is contained in:
commit
587b4d26df
@ -748,7 +748,7 @@
|
||||
:: In either case, they fall through here to be handled
|
||||
:: after the fact in +feck.
|
||||
::
|
||||
?: ?=(?(%veer %verb %wack) -.q.ovo)
|
||||
?: ?=(?(%veer %verb %wack %warn) -.q.ovo)
|
||||
[[ovo ~] +>.$]
|
||||
::
|
||||
=^ zef vanes
|
||||
@ -799,6 +799,21 @@
|
||||
?> ?=(@ q.q.ovo)
|
||||
=. eny (shaz (cat 3 eny q.q.ovo))
|
||||
[~ +>.$]
|
||||
:: learn of event-replacement failure
|
||||
::
|
||||
%warn
|
||||
:_ +>.$
|
||||
?. ?=(^ +.q.ovo)
|
||||
~
|
||||
=/ msg=tape
|
||||
:(weld "(for %" (trip (symp +<.q.ovo)) ") failed")
|
||||
~> %slog.[0 leaf+(weld "arvo: replacement event " msg)]
|
||||
?: lac
|
||||
~
|
||||
=/ rep
|
||||
%- mule |.
|
||||
((slog (tang +>.q.ovo)) ~)
|
||||
?.(?=(%& -.rep) ~ p.rep)
|
||||
==
|
||||
::
|
||||
++ vega :: reboot kernel
|
||||
|
@ -166,7 +166,7 @@
|
||||
++ crud
|
||||
|= {err/@tas tac/(list tank)}
|
||||
=+ ^= wol ^- wall
|
||||
:- (trip err)
|
||||
:- :(weld "%" (trip err) " event failed:")
|
||||
(zing (turn (flop tac) |=(a/tank (~(win re a) [0 wid]))))
|
||||
|- ^+ +>.^$
|
||||
?~ wol +>.^$
|
||||
|
Loading…
Reference in New Issue
Block a user