diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-04 13:55:49 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-04 13:55:49 -0400 |
commit | 5083bca3809b27b6f9faddbefcbdc93b3ccd8226 (patch) | |
tree | f6f9ba060edb390343920b94d09668748a6edff2 /Command | |
parent | a60c23a82991738882aab1946206215c0758a34d (diff) |
remove some backtraces on user errors
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Export.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Export.hs b/Command/Export.hs index 1f293025b..38bda459c 100644 --- a/Command/Export.hs +++ b/Command/Export.hs @@ -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)) |