github.com/dannyzhou2015/migrate/v4@v4.15.2/source/errors.go (about)

     1  package source
     2  
     3  import "os"
     4  
     5  // ErrDuplicateMigration is an error type for reporting duplicate migration
     6  // files.
     7  type ErrDuplicateMigration struct {
     8  	Migration
     9  	os.FileInfo
    10  }
    11  
    12  // Error implements error interface.
    13  func (e ErrDuplicateMigration) Error() string {
    14  	return "duplicate migration file: " + e.Name()
    15  }