From 91060dcd549e31602593e07b9d1cda1c5dd39719 Mon Sep 17 00:00:00 2001 From: comp500 Date: Mon, 30 Nov 2020 00:24:47 +0000 Subject: [PATCH] Put an error message there. Later is now! --- src/main/kotlin/link/infra/packwiz/installer/UpdateManager.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/link/infra/packwiz/installer/UpdateManager.kt b/src/main/kotlin/link/infra/packwiz/installer/UpdateManager.kt index 3109c59..8c11da2 100644 --- a/src/main/kotlin/link/infra/packwiz/installer/UpdateManager.kt +++ b/src/main/kotlin/link/infra/packwiz/installer/UpdateManager.kt @@ -255,8 +255,7 @@ class UpdateManager internal constructor(private val opts: Options, val ui: IUse return } if (!indexFileSource.hashIsEqual(indexHash)) { - // TODO: throw exception - println("I was meant to put an error message here but I'll do that later") + ui.handleExceptionAndExit(RuntimeException("Your index hash is invalid! Please run packwiz refresh on the pack again")) return } if (stateHandler.cancelButton) {