This commit is contained in:
mattes 2014-10-04 09:46:29 +02:00
parent e89512949c
commit 805b8413d6
1 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,9 @@ func main() {
case "goto":
verifyMigrationsPath(*migrationsPath)
toVerion := flag.Arg(1)
toVerionInt, err := strconv.Atoi(toVerion)
if err != nil || toVerionInt < 0 {
toVersion := flag.Arg(1)
toVersionInt, err := strconv.Atoi(toVersion)
if err != nil || toVersionInt < 0 {
fmt.Println("Unable to parse param <v>.")
os.Exit(1)
}
@ -81,7 +81,7 @@ func main() {
os.Exit(1)
}
relativeNInt := toVerionInt - int(currentVersion)
relativeNInt := toVersionInt - int(currentVersion)
timerStart = time.Now()
pipe := pipep.New()