lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.8.0 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.8.1
- old
+ new
@@ -20,9 +20,11 @@
key = key + ':' if key.end_with?('.')
next unless valid_key?(key, strict)
keys << [key, data: location]
end
keys
+ rescue Exception => e
+ raise ::I18n::Tasks::CommandError.new("Error scanning #{path}: #{e.message}")
end
def default_pattern
# capture only the first argument
/