5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 03:26:22 +00:00

fix: notificar la excepción correctamente

This commit is contained in:
f 2023-10-26 18:06:43 -03:00
parent 2282acfc6e
commit 6e5195ca90
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ class Post
def find_layout(path)
File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym
rescue Errno::ENOENT => e
ExceptionNotifier.notify(e)
ExceptionNotifier.notify_exception(e, data: { path: path })
:post
end