mirror of
https://github.com/playwright-community/playwright-go.git
synced 2026-06-03 21:02:27 +08:00
fix: ignore nil error for up2date (#552)
This commit is contained in:
parent
556282eb0a
commit
ed0010f3c6
6
run.go
6
run.go
@ -276,7 +276,11 @@ func Run(options ...*RunOptions) (*Playwright, error) {
|
||||
}
|
||||
up2date, err := driver.isUpToDateDriver()
|
||||
if err != nil || !up2date {
|
||||
return nil, fmt.Errorf("please install the driver (v%s) first: %w", playwrightCliVersion, err)
|
||||
ferr := fmt.Errorf("please install the driver (v%s) first", playwrightCliVersion)
|
||||
if err != nil {
|
||||
ferr = fmt.Errorf("%w: %w", ferr, err)
|
||||
}
|
||||
return nil, ferr
|
||||
}
|
||||
connection, err := driver.run()
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user