mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(bugfix): Fix invalid usage of error handler (#511)
The error handler was never invoked when executing `org-roam-graph-viewer` failed
This commit is contained in:
@ -216,7 +216,7 @@ into a digraph."
|
|||||||
(if (executable-find org-roam-graph-viewer)
|
(if (executable-find org-roam-graph-viewer)
|
||||||
(condition-case err
|
(condition-case err
|
||||||
(call-process org-roam-graph-viewer nil 0 nil file)
|
(call-process org-roam-graph-viewer nil 0 nil file)
|
||||||
((error (user-error "Failed to open org-roam graph: %s" err))))
|
(error (user-error "Failed to open org-roam graph: %s" err)))
|
||||||
(user-error "Executable not found: \"%s\"" org-roam-graph-viewer)))
|
(user-error "Executable not found: \"%s\"" org-roam-graph-viewer)))
|
||||||
((pred functionp) (funcall org-roam-graph-viewer file))
|
((pred functionp) (funcall org-roam-graph-viewer file))
|
||||||
('nil (view-file file))
|
('nil (view-file file))
|
||||||
|
Reference in New Issue
Block a user