Pārlūkot izejas kodu

Fix error message in max-file validation

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Alexander Morozov 10 gadi atpakaļ
vecāks
revīzija
cde607108b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      daemon/logger/jsonfilelog/jsonfilelog.go

+ 1 - 1
daemon/logger/jsonfilelog/jsonfilelog.go

@@ -74,7 +74,7 @@ func New(ctx logger.Context) (logger.Logger, error) {
 			return nil, err
 			return nil, err
 		}
 		}
 		if maxFiles < 1 {
 		if maxFiles < 1 {
-			return nil, fmt.Errorf("max-files cannot be less than 1")
+			return nil, fmt.Errorf("max-file cannot be less than 1")
 		}
 		}
 	}
 	}
 	return &JSONFileLogger{
 	return &JSONFileLogger{