Diff

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
line wrap: on
line diff
--- a/mod_sentry/sentry.lib.lua	Tue Dec 08 15:34:53 2020 +0000
+++ b/mod_sentry/sentry.lib.lua	Wed Dec 09 12:21:17 2020 +0000
@@ -112,7 +112,7 @@
 end
 
 function sentry_event_methods:add_exception(e)
-	if errors.is_error(e) then
+	if errors.is_err(e) then
 		e = error_to_sentry_exception(e);
 	elseif type(e) ~= "table" or not (e.type and e.value) then
 		e = error_to_sentry_exception(errors.coerce(nil, e));