diff --git a/changelog.d/+binary-fetch.fixed.md b/changelog.d/+binary-fetch.fixed.md new file mode 100644 index 00000000..5393011b --- /dev/null +++ b/changelog.d/+binary-fetch.fixed.md @@ -0,0 +1 @@ +Fixed bug with fetching new mirrord binaries. \ No newline at end of file diff --git a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordBinaryManager.kt b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordBinaryManager.kt index 64c79b84..30f2a4d0 100644 --- a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordBinaryManager.kt +++ b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordBinaryManager.kt @@ -78,9 +78,9 @@ class MirrordBinaryManager { manager.latestSupportedVersion = version val local = if (checkInPath) { - manager.getLocalBinary(downloadingVersion, wslDistribution) + manager.getLocalBinary(version, wslDistribution) } else { - manager.findBinaryInStorage(downloadingVersion) + manager.findBinaryInStorage(version) } if (local != null) { return @@ -99,7 +99,7 @@ class MirrordBinaryManager { project.service() .notifier - .notifyRichError("failed to update the mirrord binary: ${error.message}") + .notifyRichError("failed to update the mirrord binary: ${error.message ?: error.toString()}") } override fun onFinished() {