summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-10-01 13:16:18 -0700
committerAman Gupta <aman@tmm1.net>2015-10-01 13:16:18 -0700
commit08843c6673056a37747642abf61f44c5c923be45 (patch)
treef4578aae6773e36ebb8c92d4b8475c252de4413d /compiler
parentb093c0abd095468330e83da4a145d5fa9447a824 (diff)
downloadNim-08843c6673056a37747642abf61f44c5c923be45.tar.gz
remove echo() from compiler
Diffstat (limited to 'compiler')
-rw-r--r--compiler/extccomp.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index ac645f307..3882bdd03 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -675,9 +675,9 @@ proc callCCompiler*(projectfile: string) =
   let runCb = proc (idx: int, p: Process) =
     let exitCode = p.peekExitCode
     if exitCode != 0:
-      echo p.outputStream.readAll
       rawMessage(errGenerated, "execution of an external compiler program '" &
-        cmds[idx] & "' failed with exit code: " & $exitCode)
+        cmds[idx] & "' failed with exit code: " & $exitCode & "\n\n" &
+        p.outputStream.readAll.strip)
   compileCFile(toCompile, script, cmds, prettyCmds, false)
   compileCFile(externalToCompile, script, cmds, prettyCmds, true)
   if optCompileOnly notin gGlobalOptions: