5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 17:06:21 +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) def find_layout(path)
File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym
rescue Errno::ENOENT => e rescue Errno::ENOENT => e
ExceptionNotifier.notify(e) ExceptionNotifier.notify_exception(e, data: { path: path })
:post :post
end end