pub fn internal_error(msg: impl Into<String>) -> ErrorObjectOwned