diff --git a/src/pkg/syscall/syscall_windows.go b/src/pkg/syscall/syscall_windows.go index f3025f11553..5f33364704f 100644 --- a/src/pkg/syscall/syscall_windows.go +++ b/src/pkg/syscall/syscall_windows.go @@ -27,8 +27,8 @@ import ( "syscall" ) -func abort(funcname string, err int) { - panic(funcname + " failed: " + syscall.Errstr(err)) +func abort(funcname string, err error) { + panic(funcname + " failed: " + err.Error()) } func print_version(v uint32) {