remove some backtraces on user errors
This commit is contained in:
parent
7eb9889bfd
commit
42eaa340fe
1 changed files with 2 additions and 2 deletions
|
@ -71,9 +71,9 @@ seek :: ExportOptions -> CommandSeek
|
|||
seek o = do
|
||||
r <- getParsed (exportRemote o)
|
||||
unlessM (exportSupported (exportActions r)) $
|
||||
error "That remote does not support exports."
|
||||
giveup "That remote does not support exports."
|
||||
|
||||
new <- fromMaybe (error "unknown tree") <$>
|
||||
new <- fromMaybe (giveup "unknown tree") <$>
|
||||
-- Dereference the tree pointed to by the branch, commit,
|
||||
-- or tag.
|
||||
inRepo (Git.Ref.tree (exportTreeish o))
|
||||
|
|
Loading…
Reference in a new issue