Skip to content

Commit

Permalink
Merge pull request #2427 from ganmacs/fix-log-rotete-age-error-handling
Browse files Browse the repository at this point in the history
Fix log rotete age error handling
  • Loading branch information
repeatedly authored May 30, 2019
2 parents 0f3704f + 24f6c62 commit 85ad8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/command/fluentd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
else
begin
opts[:log_rotate_age] = Integer(age)
rescue TypeError
usage "log-rotate-age should be #{rotate_ages.join(', ')} or a number"
rescue TypeError, ArgumentError
usage "log-rotate-age should be #{ROTATE_AGE.join(', ')} or a number"
end
end
}
Expand Down

0 comments on commit 85ad8d7

Please sign in to comment.