[gnome-code-assistance] [backends/c] Debug log make exceptions
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c] Debug log make exceptions
- Date: Tue, 12 Nov 2013 14:51:54 +0000 (UTC)
commit f371a03dcb552f5309ea917f7e7eeea55b32edbf
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Tue Nov 12 15:46:56 2013 +0100
[backends/c] Debug log make exceptions
backends/c/makefileintegration.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 7668bef..a159724 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -209,7 +209,8 @@ class MakefileIntegration:
outstr = subprocess.check_output(args, cwd=wd, stderr=stderr).decode('utf-8')
except StandardError as e:
if self.debug:
- print(' Failed to run make: {0}'.format(e.message))
+ print(' Failed to run make: {0}'.format(e))
+
return []
targets = []
@@ -274,7 +275,10 @@ class MakefileIntegration:
try:
with open(os.devnull, 'w') as stderr:
outstr = subprocess.check_output(args, cwd=wd, stderr=stderr).decode('utf-8')
- except:
+ except Exception as e:
+ if self.debug:
+ print(' Failed to run make: {0}'.format(e))
+
return []
regfind = re.compile(fakecc + '([^\n]*)$', re.M)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]