Skip to content

Commit d23e68c

Browse files
Handle installation errors (exit code)
1 parent dc081ad commit d23e68c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-java.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,8 @@ PARAMS progress report notification data."
584584
(expand-file-name (lsp-java--bundles-dir))
585585
lsp-java-jdt-download-url)))
586586
(message "Running %s" full-command)
587-
(shell-command full-command))))
587+
(unless (zerop (shell-command full-command))
588+
(user-error "Failed to install lsp server using '%s'" full-command)))))
588589

589590
(defun lsp-java-update-server ()
590591
"Update LDT LS server."

0 commit comments

Comments
 (0)