formula_versions: also silence stderr.
We already stop old formula versions printing stdout but this also stops them printing on stderr for e.g. old deprecation warnings.
This commit is contained in:
parent
24b5db5367
commit
0b8eab8dac
@ -34,7 +34,7 @@ class FormulaVersions
|
|||||||
contents = file_contents_at_revision(rev)
|
contents = file_contents_at_revision(rev)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
nostdout { yield Formulary.from_contents(name, path, contents) }
|
shutup { yield Formulary.from_contents(name, path, contents) }
|
||||||
rescue *IGNORED_EXCEPTIONS => e
|
rescue *IGNORED_EXCEPTIONS => e
|
||||||
# We rescue these so that we can skip bad versions and
|
# We rescue these so that we can skip bad versions and
|
||||||
# continue walking the history
|
# continue walking the history
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user