Skip to content

Commit

Permalink
Make script error reporting a bit clearer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garth Minette committed Feb 19, 2021
1 parent ce32c8b commit fe93c5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions openscad_docsgen/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,13 @@ def _img_proc_done(self, req):
out += line + "\n"
for line in req.errors:
out += line + "\n"
out += "//////////////////////////////////////////////////////////////////////\n"
out += "// LibFile: {} Line: {} Image: {}\n".format(
out += "LibFile: {} Line: {} Image: {}\n".format(
req.src_file, req.src_line, os.path.basename(req.image_file)
)
out += "//////////////////////////////////////////////////////////////////////\n"
out += "------------------------------------------------------------------------------\n"
for line in req.script_lines:
out += line + "\n"
out += "//////////////////////////////////////////////////////////////////////\n"
out += "------------------------------------------------------------------------------\n"
print(out, file=sys.stderr)
sys.exit(-1)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup

VERSION = "1.0.1"
VERSION = "1.0.2"


with open('README.rst') as f:
Expand All @@ -19,7 +19,7 @@
author='Revar Desmera',
author_email='[email protected]',
url='https://github.com/revarbat/openscad_docsgen',
download_url='https://github.com/revarbat/openscad_docsgen/archive/v1.0.1.zip',
download_url='https://github.com/revarbat/openscad_docsgen/archive/v1.0.2.zip',
packages=['openscad_docsgen'],
license='MIT License',
classifiers=[
Expand Down

0 comments on commit fe93c5d

Please sign in to comment.