Fix wrong error messages

This commit is contained in:
crschnick 2024-03-27 17:35:31 +00:00
parent e3c4d9a9ec
commit 6510c3f6b9
2 changed files with 2 additions and 2 deletions

View file

@ -258,7 +258,7 @@ public interface ExternalEditorType extends PrefsChoiceValue {
location = determineInstallation();
if (location.isEmpty()) {
throw ErrorEvent.expected(
new IOException("Unable to find installation of " + toTranslatedString()));
new IOException("Unable to find installation of " + toTranslatedString().getValue()));
}
}

View file

@ -729,7 +729,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
if (location.isEmpty()) {
location = determineInstallation();
if (location.isEmpty()) {
throw new IOException("Unable to find installation of " + toTranslatedString());
throw new IOException("Unable to find installation of " + toTranslatedString().getValue());
}
}