mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
bail when not installed
This commit is contained in:
parent
09983a5fa5
commit
6ff89f6e91
1 changed files with 5 additions and 0 deletions
|
@ -138,6 +138,11 @@ class Package {
|
|||
logger.debug("Finding runtime")
|
||||
const found_runtime = runtime.get_latest_runtime_matching_language_version(this.language, this.version.raw);
|
||||
|
||||
if(!found_runtime){
|
||||
logger.error(`Uninstalling ${this.language}-${this.version.raw} failed: Not installed`)
|
||||
return
|
||||
}
|
||||
|
||||
logger.debug("Unregistering runtime")
|
||||
found_runtime.unregister();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue