Index: src/pkg/go/types/gcimporter.go |
=================================================================== |
--- a/src/pkg/go/types/gcimporter.go |
+++ b/src/pkg/go/types/gcimporter.go |
@@ -124,7 +124,7 @@ |
filename, id := findPkg(path) |
if filename == "" { |
- err = os.ErrorString("can't find import: " + id) |
+ err = os.NewError("can't find import: " + id) |
return |
} |
@@ -166,7 +166,7 @@ |
func (p *gcParser) error(err interface{}) { |
if s, ok := err.(string); ok { |
- err = os.ErrorString(s) |
+ err = os.NewError(s) |
} |
// panic with a runtime.Error if err is not an os.Error |
panic(importError{p.scanner.Pos(), err.(os.Error)}) |