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:
parent
2282acfc6e
commit
6e5195ca90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue