Comparison

mod_sentry/sentry.lib.lua @ 4284:b7045af1e5b7

mod_sentry: Fix typo in method name
author Matthew Wild <mwild1@gmail.com>
date Wed, 09 Dec 2020 12:21:17 +0000
parent 4283:2ae71126e379
child 4285:e67081d1f835
comparison
equal deleted inserted replaced
4283:2ae71126e379 4284:b7045af1e5b7
110 function sentry_event_methods:message(text) 110 function sentry_event_methods:message(text)
111 return self:set("message", { formatted = text }); 111 return self:set("message", { formatted = text });
112 end 112 end
113 113
114 function sentry_event_methods:add_exception(e) 114 function sentry_event_methods:add_exception(e)
115 if errors.is_error(e) then 115 if errors.is_err(e) then
116 e = error_to_sentry_exception(e); 116 e = error_to_sentry_exception(e);
117 elseif type(e) ~= "table" or not (e.type and e.value) then 117 elseif type(e) ~= "table" or not (e.type and e.value) then
118 e = error_to_sentry_exception(errors.coerce(nil, e)); 118 e = error_to_sentry_exception(errors.coerce(nil, e));
119 end 119 end
120 120