We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 217e72d commit 8c73c82Copy full SHA for 8c73c82
src/sentry.cr
@@ -263,11 +263,11 @@ module Sentry
263
file_changed = true if (app_process && !app_process.terminated?)
264
end
265
266
- rescue ex : Errno
+ rescue ex : SystemError
267
# The underlining lib for reading directories will fail very rarely, crashing Sentry
268
# This catches that error and allows Sentry to carry on normally
269
# https://github.com/crystal-lang/crystal/blob/59788834554399f7fe838487a83eb466e55c6408/src/errno.cr#L37
270
- unless ex.to_s == "readdir: Input/output error"
+ unless ex.message == "readdir: Input/output error"
271
raise ex
272
273
0 commit comments