diff options
author | David Terei <davidterei@gmail.com> | 2012-06-25 01:43:04 -0700 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2012-06-25 01:43:04 -0700 |
commit | 66c41963c82ae66a24c5d7b96f5fa6e797d6a27d (patch) | |
tree | 4f4434e39dbdc5a47619f12dcb86763259692173 | |
parent | 3a8f9ea196fd663fb0c17da88a9c39aea2652dfe (diff) | |
download | haskell-66c41963c82ae66a24c5d7b96f5fa6e797d6a27d.tar.gz |
Use errorMsg over putMsg when appropriate.
-rw-r--r-- | compiler/main/SysTools.lhs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs index e44338918a..49314f2823 100644 --- a/compiler/main/SysTools.lhs +++ b/compiler/main/SysTools.lhs @@ -499,8 +499,8 @@ runClang dflags args = do runSomething dflags "Clang (Assembler)" clang args ) (\(err :: SomeException) -> do - putMsg dflags $ text $ "Error running clang! you need clang installed" - ++ " to use the LLVM backend" + errorMsg dflags $ text $ "Error running clang! you need clang installed" + ++ " to use the LLVM backend" throw err ) @@ -538,7 +538,7 @@ figureLlvmVersion dflags = do debugTraceMsg dflags 2 (text "Error (figuring out LLVM version):" <+> text (show err)) - putMsg dflags $ vcat + errorMsg dflags $ vcat [ text "Warning:", nest 9 $ text "Couldn't figure out LLVM version!" $$ text "Make sure you have installed LLVM"] |