mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +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
|
:: In either case, they fall through here to be handled
|
||||||
:: after the fact in +feck.
|
:: after the fact in +feck.
|
||||||
::
|
::
|
||||||
?: ?=(?(%veer %verb %wack) -.q.ovo)
|
?: ?=(?(%veer %verb %wack %warn) -.q.ovo)
|
||||||
[[ovo ~] +>.$]
|
[[ovo ~] +>.$]
|
||||||
::
|
::
|
||||||
=^ zef vanes
|
=^ zef vanes
|
||||||
@ -799,6 +799,21 @@
|
|||||||
?> ?=(@ q.q.ovo)
|
?> ?=(@ q.q.ovo)
|
||||||
=. eny (shaz (cat 3 eny 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
|
++ vega :: reboot kernel
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
++ crud
|
++ crud
|
||||||
|= {err/@tas tac/(list tank)}
|
|= {err/@tas tac/(list tank)}
|
||||||
=+ ^= wol ^- wall
|
=+ ^= wol ^- wall
|
||||||
:- (trip err)
|
:- :(weld "%" (trip err) " event failed:")
|
||||||
(zing (turn (flop tac) |=(a/tank (~(win re a) [0 wid]))))
|
(zing (turn (flop tac) |=(a/tank (~(win re a) [0 wid]))))
|
||||||
|- ^+ +>.^$
|
|- ^+ +>.^$
|
||||||
?~ wol +>.^$
|
?~ wol +>.^$
|
||||||
|
Loading…
Reference in New Issue
Block a user