diff --git a/saltlint/linter.py b/saltlint/linter.py index aefe57f..bb818f2 100644 --- a/saltlint/linter.py +++ b/saltlint/linter.py @@ -100,7 +100,7 @@ def run(self, statefile, tags=set(), skip_list=frozenset()): with codecs.open(statefile['path'], mode='rb', encoding='utf-8') as f: text = f.read() except IOError as e: - print("WARNING: Coudn't open %s - %s" % + print("WARNING: Couldn't open %s - %s" % (statefile['path'], e.strerror), file=sys.stderr) return matches @@ -111,7 +111,7 @@ def run(self, statefile, tags=set(), skip_list=frozenset()): rule_definition = set(rule.tags) rule_definition.add(rule.id) - # Check if the the file is in the rule specific ignore list. + # Check if the file is in the rule specific ignore list. for definition in rule_definition: if self.config.is_file_ignored(statefile['path'], definition): skip = True