tools: show C output when tool can not be compiled
parent
86447c1301
commit
2d3944250f
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue