fix a spot where an error was not properly returned
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ func (l *Logger) Rotate() error {
|
||||
// cleanup.
|
||||
func (l *Logger) rotate() error {
|
||||
if err := l.close(); err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
if err := l.openNew(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user