Skip to content

Commit 4044209

Browse files
committed
Output error message for memory error even if not --verbose, wireservice#737
1 parent 5820308 commit 4044209

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
1.0.5
22
-----
33

4+
Improvements:
5+
6+
* Output error message for memory error even if not :code:`--verbose`.
7+
48
1.0.4 - March 16, 2019
59
----------------------
610

csvkit/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def handler(t, value, traceback):
284284
'flag or with the PYTHONIOENCODING environment variable. Use the -v flag to see '
285285
'the complete error.\n' % self.args.encoding)
286286
else:
287-
sys.stderr.write('%s\n' % six.text_type(value))
287+
sys.stderr.write('%s: %s\n' % (t.__name__, six.text_type(value)))
288288

289289
sys.excepthook = handler
290290

0 commit comments

Comments
 (0)