tools: show C output when tool can not be compiled

pull/2687/head
vitalyster 2019-11-07 16:17:32 +03:00 committed by Alexander Medvednikov
parent 86447c1301
commit 2d3944250f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ pub fn launch_tool(tname string){
//println('Compiling $tname with: "$compilation_command"')
tool_compilation := os.exec(compilation_command) or { panic(err) }
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)
}
}