mruby: support setting error message
mruby: add logger
mruby: record error while building scan_info