mirror of https://github.com/status-im/migrate.git
Fix error message
This commit is contained in:
parent
3bc76ee0bb
commit
080f49baf4
|
@ -2,7 +2,6 @@
|
|||
package driver
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
neturl "net/url" // alias to allow `url string` func signature in New
|
||||
"reflect"
|
||||
|
@ -49,8 +48,7 @@ func New(url string) (Driver, error) {
|
|||
blankDriver := reflect.New(reflect.TypeOf(driver)).Interface()
|
||||
d, ok := blankDriver.(Driver)
|
||||
if !ok {
|
||||
err := errors.New(fmt.Sprintf("Driver '%s' does not implement the Driver interface"))
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("Driver '%s' does not implement the Driver interface", u.Scheme)
|
||||
}
|
||||
verifyFilenameExtension(u.Scheme, d)
|
||||
if err := d.Initialize(url); err != nil {
|
||||
|
|
Loading…
Reference in New Issue