Fix error in a log message

This commit is contained in:
Paul van Tilburg 2014-11-20 21:37:02 +01:00
parent fc19ae0530
commit 5820e87af6
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module Hued
@log.info "* Found group #{group.id}: #{group.name} with " \
"lights #{group.bulbs.map(&:id).join(", ")}"
end
@log.info "Found #{@groups.count} group#{@groups.count != 1 || "s"}"
@log.info "Found #{@groups.count} group#{"s" unless @groups.count == 1}"
# FIXME: mention bridge.cfg contents if it was done via auto setup
rescue => e
@log.error "Could not discover lights/groups: #{e.message}"