diff --git a/avocado/utils/process.py b/avocado/utils/process.py index 84f793799229a16730be1252850154c0cc46ad43..bb705f35eb3571c6b3d15bebd9fae16de2ccb606 100644 --- a/avocado/utils/process.py +++ b/avocado/utils/process.py @@ -377,12 +377,8 @@ class SubProcess(object): shell=self.shell, env=self.env) except OSError as details: - if details.errno == 2: - exc = OSError("File '%s' not found" % self.cmd.split()[0]) - exc.errno = 2 - raise exc - else: - raise + details.strerror += " (%s)" % self.cmd + raise details self.start_time = time.time() self.stdout_file = StringIO()