Skip to content

Commit f4c212e

Browse files
committed
fixup
1 parent 5c9a97b commit f4c212e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dsn.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (c *Config) SetOptions(opts ...option) error {
100100
return err
101101
}
102102
}
103+
return nil
103104
}
104105

105106
// TimeTruncate sets the time duration to truncate time.Time values in
@@ -543,7 +544,7 @@ func parseDSNParams(cfg *Config, params string) (err error) {
543544
case "timeTruncate":
544545
cfg.timeTruncate, err = time.ParseDuration(value)
545546
if err != nil {
546-
return
547+
return fmt.Errorf("invalid timeTruncate value: %v, error: %w", value, err)
547548
}
548549

549550
// I/O read Timeout

0 commit comments

Comments
 (0)