Skip to content

Commit

Permalink
Include deleteErr message in returned error.
Browse files Browse the repository at this point in the history
  • Loading branch information
fulghum committed Jan 31, 2025
1 parent 4a2606e commit 3821a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/libraries/doltcore/sqle/database_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ func (p *DoltDatabaseProvider) CloneDatabaseFromRemote(
if exists {
deleteErr := p.fs.Delete(dbName, true)
if deleteErr != nil {
err = fmt.Errorf("%s: unable to clean up failed clone in directory '%s'", err.Error(), dbName)
err = fmt.Errorf("%s: unable to clean up failed clone in directory '%s': %s",
err.Error(), dbName, deleteErr.Error())
}
}
return err
Expand Down

0 comments on commit 3821a7a

Please sign in to comment.