Skip to main content

luaur_require/methods/
runtime_error_handler_report_error.rs

1use crate::records::error_handler::ErrorHandler;
2use crate::records::runtime_error_handler::RuntimeErrorHandler;
3
4impl RuntimeErrorHandler {
5    pub fn report_error(&mut self, message: alloc::string::String) {
6        self.error_message = self.error_prefix.clone() + &message;
7    }
8}
9
10impl ErrorHandler for RuntimeErrorHandler {
11    fn report_error(&mut self, message: alloc::string::String) {
12        RuntimeErrorHandler::report_error(self, message);
13    }
14}