go-sample-webpage/vendor/github.com/golang-migrate/migrate/v4/source/errors.go

16 lines
313 B
Go
Raw Normal View History

2021-11-08 01:25:36 +00:00
package source
import "os"
// ErrDuplicateMigration is an error type for reporting duplicate migration
// files.
type ErrDuplicateMigration struct {
Migration
os.FileInfo
}
// Error implements error interface.
func (e ErrDuplicateMigration) Error() string {
return "duplicate migration file: " + e.Name()
}