Skip to content
Snippets Groups Projects
Commit 2b98036f authored by Florent Aide's avatar Florent Aide
Browse files

Write errors on sys.stderr

parent ceac8e53
No related branches found
No related tags found
No related merge requests found
......@@ -66,12 +66,12 @@
success, info = item
if not success:
message, sent_item = info
print "*" * 35
print(_("OpenERP Error message:"))
print message
print "-" * 35
print sent_item
print "*" * 35
sys.stderr.write("*" * 35)
sys.strderr.write(_("OpenERP Error message:"))
sys.stderr.write(message)
sys.stderr.write("-" * 35)
sys.stderr.write(sent_item)
sys.stderr.write("*" * 35)
end_time = datetime.datetime.now()
duration = end_time - start_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment