Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 22, 2023
1 parent 7afd07d commit a4d1937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbutil/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (db *Database) Close() error {
if db.ReadOnlyDB != nil {
err2 := db.ReadOnlyDB.Close()
if err == nil {
err = fmt.Errorf("closing read-only db failed: %w", err)
err = fmt.Errorf("closing read-only db failed: %w", err2)
} else {
err = fmt.Errorf("%w (closing read-only db also failed: %v)", err, err2)
}
Expand Down

0 comments on commit a4d1937

Please sign in to comment.