(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:
Jürgen Hötzel 2020-04-25 12:53:09 +02:00 committed by GitHub
parent d01f7b2daf
commit 963692f353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))