Gustavo Niemeyer 15 лет назад
Родитель
Сommit
6941443daa
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      decode_test.go
  2. 1 1
      encode_test.go
  3. 1 1
      goyaml.go

+ 1 - 1
decode_test.go

@@ -3,7 +3,7 @@ package goyaml_test
 
 import (
 	. "launchpad.net/gocheck"
-	"goyaml"
+	"launchpad.net/goyaml"
 	"reflect"
 	"math"
 )

+ 1 - 1
encode_test.go

@@ -3,7 +3,7 @@ package goyaml_test
 
 import (
 	. "launchpad.net/gocheck"
-	"goyaml"
+	"launchpad.net/goyaml"
 	"math"
 	//"reflect"
 )

+ 1 - 1
goyaml.go

@@ -24,7 +24,7 @@ func handleErr(err *os.Error) {
 		} else if _, ok := r.(*reflect.ValueError); ok {
 			panic(r)
 		} else if s, ok := r.(string); ok {
-			*err = os.ErrorString("YAML error: " + s)
+			*err = os.NewError("YAML error: " + s)
 		} else if e, ok := r.(os.Error); ok {
 			*err = e
 		} else {