fix #712, badly formed error message for reports API