aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-21 14:39:45 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-21 16:26:43 +0100
commit0d27f508b6b35d3b12b9fafebd40a1f36950c8f3 (patch)
treea721863455a3eb5402e1b9dc9ed1b5df48d6d810 /pkg/osutil
parent2f4d85f4fcb01363b05e03c7fe7d71a71a92c686 (diff)
pkg/osutil: extend error message on wd change
Knowning the new wd may help to localize the error.
Diffstat (limited to 'pkg/osutil')
-rw-r--r--pkg/osutil/osutil.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/osutil/osutil.go b/pkg/osutil/osutil.go
index 5a7a342b1..82c356978 100644
--- a/pkg/osutil/osutil.go
+++ b/pkg/osutil/osutil.go
@@ -287,7 +287,7 @@ func init() {
func Abs(path string) string {
if wd1, err := os.Getwd(); err == nil && wd1 != wd {
- panic("don't mess with wd in a concurrent program")
+ panic(fmt.Sprintf("wd changed: %q -> %q", wd, wd1))
}
if path == "" || filepath.IsAbs(path) {
return path