mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
updates |cp and |mv to print errors without stacktraces
This commit is contained in:
parent
682fc54382
commit
20666d1898
@ -4,13 +4,12 @@
|
||||
/? 310
|
||||
:- %say
|
||||
|= {^ {input/path output/path $~} $~}
|
||||
:- %kiln-info
|
||||
?. =(-:(flop input) -:(flop output))
|
||||
~& "Can't move to a different mark"
|
||||
~
|
||||
["Can't move to a different mark" *toro]
|
||||
=+ dir=.^(arch %cy input)
|
||||
?~ fil.dir
|
||||
~& "No such file:"
|
||||
~& <input>
|
||||
~
|
||||
:+ %kiln-info "copied"
|
||||
[<input> *toro]
|
||||
:- "copied"
|
||||
(foal output -:(flop input) [%atom %t ~] .^(* %cx input)) :: XX type
|
||||
|
@ -4,14 +4,13 @@
|
||||
/? 310
|
||||
:- %say
|
||||
|= {^ {input/path output/path $~} $~}
|
||||
:- %kiln-info
|
||||
?. =(-:(flop input) -:(flop output))
|
||||
~& "Can't move to a different mark"
|
||||
~
|
||||
["Can't move to a different mark" *toro]
|
||||
=+ dir=.^(arch %cy input)
|
||||
?~ fil.dir
|
||||
~& "No such file:"
|
||||
~& <input>
|
||||
~
|
||||
:+ %kiln-info "moved"
|
||||
[<input> *toro]
|
||||
:- "moved"
|
||||
%+ furl (fray input)
|
||||
(foal output -:(flop input) [%noun .^(* %cx input)])
|
||||
|
Loading…
Reference in New Issue
Block a user