From 5083bca3809b27b6f9faddbefcbdc93b3ccd8226 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 4 Sep 2017 13:55:49 -0400 Subject: remove some backtraces on user errors --- Command/Export.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Command') 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)) -- cgit v1.2.3