Skip to content

Commit

Permalink
Just log the error
Browse files Browse the repository at this point in the history
  • Loading branch information
dotchev committed Jan 27, 2019
1 parent 2ee45ac commit 3ba6154
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package migrate
import (
"fmt"
"os"
"strconv"
"sync"
"time"

Expand Down Expand Up @@ -754,11 +753,8 @@ func (m *Migrate) versionExists(version uint) error {
return err
}

return &os.PathError{
Op: "no migration found for version",
Path: strconv.Itoa(int(version)),
Err: os.ErrNotExist,
}
m.logPrintf("ERROR: No migration found for version %d", version)
return os.ErrNotExist
}

// stop returns true if no more migrations should be run against the database
Expand Down

0 comments on commit 3ba6154

Please sign in to comment.