fix err_info() -spec according to report_error/4