Ugly error message when file does not exist #317

Closed
GoogleCodeExporter opened this Issue Mar 12, 2015 · 3 comments

Comments

Projects
None yet
1 participant
What steps will reproduce the problem?
1. rst2pdf thisfiledonesnotexist.txt
2.
3.

What is the expected output? What do you see instead?
In command line a nice error message.

Please answer the following questions, they are *very* important:

* Version of rst2pdf?
0.12.3
* Version of reportlab?

>>> reportlab.__version__
' $Id: __init__.py 3649 2010-01-20 14:45:53Z damian $ '

* Are you using wordaxe, and if true, what version?


Please provide any additional information below.
I sent a patch to launchpad, but it wasn't good. Because:
1) It exits with code 0 in an error.
2) It prints the error message to stdout.

Where should be printed the error message ? instead of stdout
Regards
malev

Original issue reported on code.google.com by marcosva...@gmail.com on 14 May 2010 at 2:00

It should be printed to stderr, of course :-)

I'll try to get this fixed today, or worst case monday. Thanks for the report!

Original comment by roberto.alsina on 14 May 2010 at 5:26

  • Changed state: Accepted
This issue was closed by revision r2166.

Original comment by roberto.alsina on 31 May 2010 at 7:40

  • Changed state: Fixed
Sorry it took so long!

Original comment by roberto.alsina on 31 May 2010 at 7:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment