Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
daacc1b9
Commit
daacc1b9
authored
Apr 30, 2019
by
Nicolas Chevillot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added traceback
parent
c4b5fced
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
__main__.py
hdlmake/__main__.py
+15
-1
No files found.
hdlmake/__main__.py
View file @
daacc1b9
...
...
@@ -187,6 +187,12 @@ def _get_parser():
dest
=
"sufix_code"
,
default
=
""
,
help
=
"Python code executed after every Manifest.py"
)
parser
.
add_argument
(
"--full-error"
,
default
=
False
,
action
=
"store_true"
,
dest
=
"full_error"
,
help
=
"display full error log with traceback"
)
return
parser
...
...
@@ -204,4 +210,12 @@ def _get_options(sys_aux, parser):
if
__name__
==
"__main__"
:
try
:
main
()
except
Exception
as
e
:
import
traceback
logging
.
error
(
e
)
if
global_mod
.
options
.
full_error
:
logging
.
error
(
"Trace:"
)
traceback
.
print_exc
()
quit
(
2
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment