bdd: Show what exactly failed with InvalidLine

This commit is contained in:
Florian Bruhin 2016-09-06 16:58:41 +02:00
parent 7f013b7808
commit c6d6483929

View File

@ -285,7 +285,7 @@ class Process(QObject):
# Exit the process to make sure we're in a defined state again
self.terminate()
self.clear_data()
raise InvalidLine
raise InvalidLine('\n' + '\n'.join(self._invalid))
self.clear_data()
if not self.is_running() and not self.exit_expected: