plugins/python/example_*.py: document returning error string

This commit is contained in:
Robert Manner
2020-02-06 13:24:28 +01:00
committed by Todd C. Miller
parent 9c4f076f85
commit bbbcb39334
4 changed files with 31 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
Example sudo python plugin will log to /some/not/writable/directory/sudo.log
Traceback:
File "SRC_DIR/example_io_plugin.py", line 61, in __init__
File "SRC_DIR/example_io_plugin.py", line 67, in __init__
self._open_log_file(path.join(log_path, "sudo.log"))
File "SRC_DIR/example_io_plugin.py", line 134, in _open_log_file
File "SRC_DIR/example_io_plugin.py", line 140, in _open_log_file
self._log_file = open(log_path, "a")