mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
docket: show error msgs earlier during glob upload
The error could mean that we don't have a valid `desk`. We want to show that message, instead of trying to `(~(got by charges) desk)`. Fixes #5282.
This commit is contained in:
parent
51f4c83352
commit
7ca810f2cf
@ -510,6 +510,12 @@
|
||||
[[404^~ ~] [~ state]]
|
||||
::
|
||||
=; [desk=@ta =glob err=(list @t)]
|
||||
=* error-result
|
||||
:_ [~ state]
|
||||
[[400 ~] `(upload-page err)]
|
||||
::
|
||||
?. =(~ err) error-result
|
||||
::
|
||||
=* cha ~(. ch desk)
|
||||
=/ =charge (~(got by charges) desk)
|
||||
::
|
||||
@ -518,9 +524,7 @@
|
||||
=? err !?=(%glob -.href.docket.charge)
|
||||
['desk does not use glob' err]
|
||||
::
|
||||
?. =(~ err)
|
||||
:_ [~ state]
|
||||
[[400 ~] `(upload-page err)]
|
||||
?. =(~ err) error-result
|
||||
:- [[200 ~] `(upload-page 'successfully globbed' ~)]
|
||||
?> ?=(%glob -.href.docket.charge)
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user