diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-29 18:34:38 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-29 18:34:38 +0100 |
commit | f241b0d86e1bb4bb81ab118ef0ec3baed6afbf0c (patch) | |
tree | 84aa482fdcab9cf36ad4c1f5e4b17f4b9e9bd92b /example.py | |
parent | 283cb2fd81cf442e59dd41af17795f666b1f2f45 (diff) | |
download | python-ttystatus-f241b0d86e1bb4bb81ab118ef0ec3baed6afbf0c.tar.gz |
Add a way to print error messages to stderr.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -60,6 +60,8 @@ def main(): if os.path.islink(pathname): ts['symlink'] = pathname ts.notify('Symlink! %s' % pathname) + elif 'error' in pathname: + ts.error('Error in pathname: %s' % pathname) ts['done'] += 1 ts.finish() |