Commits

Anonymous committed 80dc0ba

Handling case here walkerr is raised and info is nil

  • Participants
  • Parent commits e885648

Comments (0)

Files changed (1)

File lib/goose/migrate.go

 	"errors"
 	"fmt"
 	_ "github.com/lib/pq"
-	_ "github.com/ziutek/mymysql/godrv"
 	_ "github.com/mattn/go-sqlite3"
+	_ "github.com/ziutek/mymysql/godrv"
 	"log"
 	"os"
 	"path/filepath"
 	version = -1
 
 	filepath.Walk(dirpath, func(name string, info os.FileInfo, walkerr error) error {
+		if walkerr != nil {
+			return walkerr
+		}
 
 		if !info.IsDir() {
 			if v, e := NumericComponent(name); e == nil {