mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 03:46:23 +00:00
fix: notificar la excepción correctamente
This commit is contained in:
parent
2282acfc6e
commit
6e5195ca90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue