Merge pull request #61 from VlachJosef/no-godot-on-path

Signal an error if godot executable can't be found
This commit is contained in:
Nathan Lovato
2020-05-28 15:13:27 -06:00
committed by GitHub

View File

@@ -50,6 +50,9 @@
CMD is the command to be invoked by the shell. If SHOW, the
output of the process will be provided in a buffer named
`*godot*'."
(when (not (executable-find gdscript-godot-executable))
(error "Error: Could not find %s on PATH. Please customize the gdscript-godot-executable variable." gdscript-godot-executable))
(start-process-shell-command "Godot Process" (if show
"*godot*" nil) cmd))