Fix an issue that causes create symlink failed when installing java on unix-like platforms.
This commit is contained in:
1 parent
8bde4ef753
commit
1754b01230
15 files changed
+600
-77
No files matched your search
@@ -24,8 +24,8 @@ class LauncherHTTPException(LauncherException):
|
||||
class HashMismatchException(Exception):
|
||||
def __init__(self, hash_name, got_hash, expected_hash, filepath: str | Path):
|
||||
if type(filepath) == Path: filepath = Path(filepath).absolute().as_posix()
|
||||
self.message = "File {} hash mismatch. Expected hash {}. Got hash {} ({})".format(filepath, got_hash,
|
||||
expected_hash, hash_name)
|
||||
self.message = "File {} hash mismatch. Expected hash {}. Got hash {} ({})".format(filepath, expected_hash, got_hash,
|
||||
hash_name)
|
||||
super().__init__(self.message)
|
||||
|
||||
class UnsupportedPlatformException(LauncherException):
|
||||
|
||||
Reference in new issue
Block a user