mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-17 00:41:50 +00:00
fix: notificar la excepción correctamente
(cherry picked from commit 6e5195ca90
)
This commit is contained in:
parent
cd613b053d
commit
43ba7d78f0
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ class Post
|
|||
# a demanda?
|
||||
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_exception(e, data: { path: path })
|
||||
|
||||
:post
|
||||
end
|
||||
|
||||
# Genera un Post nuevo
|
||||
|
|
Loading…
Reference in a new issue