bail when not installed
This commit is contained in:
parent
09983a5fa5
commit
6ff89f6e91
|
@ -138,6 +138,11 @@ class Package {
|
||||||
logger.debug("Finding runtime")
|
logger.debug("Finding runtime")
|
||||||
const found_runtime = runtime.get_latest_runtime_matching_language_version(this.language, this.version.raw);
|
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")
|
logger.debug("Unregistering runtime")
|
||||||
found_runtime.unregister();
|
found_runtime.unregister();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue