clay: revise /subs %cs scry again

return an empty set instead of crashing if desk doesn't exist
This commit is contained in:
bacwyls 2023-02-03 11:46:54 -06:00 committed by GitHub
parent 3c7ff0c1f2
commit 4c2e5460bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4163,10 +4163,11 @@
|= [yon=aeon pax=path]
^- (unit (unit cage))
?: ?=([%subs ~] pax)
=/ doj=(unit dojo) (~(get by dos.rom) syd)
?~ doj `~
=/ wos ~(tap in ~(key by qyx.u.doj))
=| sus=(set ship)
=/ doj=(unit dojo) (~(get by dos.rom) syd)
?~ doj
``noun+!>(sus)
=/ wos ~(tap in ~(key by qyx.u.doj))
|-
?~ wos
``noun+!>(sus)