aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-03-01 09:33:26 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-03-01 09:33:26 -0700
commitab1c5b31639a1e878ec20879e9fbace82362fd6e (patch)
tree147700ec883c6363d19204bd7056240866ddbd0f
parenta5649fd836eae52d0776f317967d0db01b60f452 (diff)
downloadsscan-ab1c5b31639a1e878ec20879e9fbace82362fd6e.tar.gz
better error on scanimage failure
-rw-r--r--Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Main.hs b/Main.hs
index c03d611..ac80935 100644
--- a/Main.hs
+++ b/Main.hs
@@ -122,7 +122,9 @@ scanPage st dir = withFile outF WriteMode $ \outH -> do
ExitSuccess -> return True
ExitFailure c -> do
putStrLn $ "scanimage exited with exit code" ++ show c ++ "!"
- putStrLn "press any key to abort this scanning session"
+ putStrLn "This might because sscan tried to use an option that your"
+ putStrLn "scanner does not support. Please try another preset."
+ putStrLn "Press any key to abort this scanning session..."
void getChar
return False
where