Skip to content

Commit

Permalink
Fixes an issue when error message about file loading was not logged.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jul 25, 2022
1 parent d59b047 commit c933cae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ public void importFile(@Nullable User user, World world, String file)
Utils.sendMessage(user, user.getTranslation(Constants.ERRORS + "no-load",
Constants.PARAMETER_FILE, file, TextVariables.DESCRIPTION, e.getMessage()));
}
else
{
this.addon.logError("Exception when loading file. " + e.getMessage());
}

this.addon.logError("Exception when loading file. " + e.getMessage());

return;
}
Expand All @@ -119,10 +117,8 @@ public void importFile(@Nullable User user, World world, String file)
user.getTranslation(Constants.ERRORS + "not-a-gamemode-world",
Constants.PARAMETER_WORLD, world.getName()));
}
else
{
this.addon.logWarning("Given world is not a gamemode world.");
}

this.addon.logWarning("Given world is not a gamemode world.");

return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ challenges:
not-enough-money: '&c It is necessary to have [value] on your account to complete the challenge.'
not-enough-experience: '&c It is necessary to have [value] EXP to complete this challenge.'
island-level: '&c Your island must be level [number] or greater to complete this challenge!'
no-load: '&c Error: Could not load file. [message]'
no-load: '&c Error: Could not load [file]. Error [message]'
load-error: '&c Error: Cannot load [value].'
no-rank: "&c You do not have rank that is high enough to do that."
cannot-remove-items: '&c Some items cannot be removed from your inventory!'
Expand Down

0 comments on commit c933cae

Please sign in to comment.