Fix error message in max-file validation
Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: cde607108badc84ddb6a7e2d2f75ce31be9967a5 Component: engine
This commit is contained in:
@@ -74,7 +74,7 @@ func New(ctx logger.Context) (logger.Logger, error) {
|
||||
return nil, err
|
||||
}
|
||||
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{
|
||||
|
||||
Reference in New Issue
Block a user