aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/targets.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 6b910456d..2cf001473 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -1004,7 +1004,8 @@ func (target *Target) lazyInit() {
cmd := exec.Command(comp, args...)
cmd.Stdin = strings.NewReader(prog)
if out, err := cmd.CombinedOutput(); err != nil {
- target.BrokenCompiler = string(out)
+ target.BrokenCompiler = fmt.Sprintf("error running command: '%s':\ngotoutput: %s",
+ comp+" "+strings.Join(args, " "), out)
return
}
}