feat: improve error message for AccessDeniedException. Mentioned in #1114.

This commit is contained in:
huanghongxun
2021-10-17 15:13:42 +08:00
parent dcfe724803
commit 0ebeffac32
4 changed files with 15 additions and 3 deletions

View File

@@ -289,6 +289,10 @@ download.javafx.notes=Downloading necessary components for HMCL through network.
download.javafx.component=Downloading the module %s
download.javafx.prepare=Ready to download
exception.access_denied=It's denied by operating system to access file %s. Maybe we don't have permission to access this file, or this file has already been opened by other program.\n\
Please check if current operating system user has permission to access that file.\n\
For Windows users, you can also try the Resource Monitor, find if some programs is holding the file, try to close related program, or restart your computer.
extension.bat=Windows Bat file
extension.mod=Mod file
extension.png=Image file
@@ -401,7 +405,6 @@ install.change_version=Change version
install.change_version.confirm=Are you sure you want to update %s from verison %s to %s?
install.failed=Version failed to install
install.failed.downloading=Failed to install due to some files not downloaded successfully
install.failed.downloading.access_denied=Failed to download file: %1$s. Because it's denied by operating system to access file %2$s. Maybe we don't have permission to access this file, or this file has already been opened by other program. You can try to close related program, or restart your computer.
install.failed.downloading.detail=Failed to download file: %s
install.failed.downloading.timeout=Timed out while downloading the file: %s
install.failed.install_online=Unable to recognize the provided installer file. If you are installing a mod, go to "Mods" page.