From 46b1e9118dd31298b4398ce5828c7b14bcf06a7e Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Fri, 23 Apr 2021 14:32:05 +1200 Subject: [PATCH] throw error --- api/src/ppman/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/ppman/package.js b/api/src/ppman/package.js index 2e04905..ee12bd9 100644 --- a/api/src/ppman/package.js +++ b/api/src/ppman/package.js @@ -140,7 +140,7 @@ class Package { if(!found_runtime){ logger.error(`Uninstalling ${this.language}-${this.version.raw} failed: Not installed`) - return + throw new Error(`${this.language}-${this.version.raw} is not installed`) } logger.debug("Unregistering runtime")