Improved an error message, giving a more concrete suggestion
authorPepe Iborra <mnislaih@gmail.com>
Fri, 5 Jan 2007 17:45:25 +0000 (17:45 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Fri, 5 Jan 2007 17:45:25 +0000 (17:45 +0000)
compiler/ghci/Debugger.hs

index 1608933..1d493e0 100644 (file)
@@ -376,10 +376,11 @@ bkptOptions cmd = do
     bkptOptions' _ _ = throwDyn $ CmdLineError $ 
                          "syntax: :breakpoint (list|stop|add|del)"
 
+-- Error messages
     handleBkptEx :: Module -> Debugger.BkptException -> a
     handleBkptEx _ NoBkptFound = error "No suitable breakpoint site found"  --TODO Automatically add to the next suitable line
     handleBkptEx _ NotNeeded   = error "Nothing to do"
-    handleBkptEx m NotHandled  = error$ "Module " ++ showSDoc (ppr m) ++  " was not loaded under debugging mode. Enable debugging mode and reload it"
+    handleBkptEx m NotHandled  = error$ "Module " ++ showSDoc (ppr m) ++  " was not loaded under debugging mode. Enable debugging mode with -fdebugging (and reload your module)"
 
 -------------------------
 -- Breakpoint Tables