1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: show C output when tool can not be compiled

This commit is contained in:
vitalyster 2019-11-07 16:17:32 +03:00 committed by Alexander Medvednikov
parent 86447c1301
commit 2d3944250f

View File

@ -35,7 +35,7 @@ pub fn launch_tool(tname string){
//println('Compiling $tname with: "$compilation_command"') //println('Compiling $tname with: "$compilation_command"')
tool_compilation := os.exec(compilation_command) or { panic(err) } tool_compilation := os.exec(compilation_command) or { panic(err) }
if tool_compilation.exit_code != 0 { if tool_compilation.exit_code != 0 {
panic('V tool "$tool_source" could not be compiled.') panic('V tool "$tool_source" could not be compiled\n' + tool_compilation.output)
} }
} }