(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:
parent
d01f7b2daf
commit
963692f353
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ into a digraph."
|
|||
(if (executable-find org-roam-graph-viewer)
|
||||
(condition-case err
|
||||
(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)))
|
||||
((pred functionp) (funcall org-roam-graph-viewer file))
|
||||
('nil (view-file file))
|
||||
|
|
Loading…
Reference in a new issue