It print only a failed TMX file. If there's no error, it end without printing anything leave user wonder whether all their files are tested.
Solution
It shall both print on error and succeed cases. For success case, it shall print to std out. For error case, it shall print to std err. This is just to make user easily distinguish failure from succeed.
To make it even simpler, it shall print error in red text and success in green text so caller doesn't need to know shell's output redirection syntax.
Description
It print only a failed TMX file. If there's no error, it end without printing anything leave user wonder whether all their files are tested.
Solution
It shall both print on error and succeed cases. For success case, it shall print to std out. For error case, it shall print to std err. This is just to make user easily distinguish failure from succeed.
To make it even simpler, it shall print error in red text and success in green text so caller doesn't need to know shell's output redirection syntax.