aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/config
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2021-08-13 10:48:19 +0200
committerCow <cow@volloeko.de>2021-08-13 10:48:19 +0200
commit141a45a8d23237bf23b3b7a14d447440a40e71ea (patch)
tree2d5e5881b304e76881e1eddd0b467c79be60e7b9 /src/main/java/de/cowtipper/cowlection/config
parent589b94d1c7a1a648402d62c6c097b2394bff3d1d (diff)
downloadCowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.tar.gz
Cowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.tar.bz2
Cowlection-141a45a8d23237bf23b3b7a14d447440a40e71ea.zip
Improved error messages for API errors
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/config')
-rw-r--r--src/main/java/de/cowtipper/cowlection/config/CredentialStorage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/config/CredentialStorage.java b/src/main/java/de/cowtipper/cowlection/config/CredentialStorage.java
index c7cf35f..f4e64f6 100644
--- a/src/main/java/de/cowtipper/cowlection/config/CredentialStorage.java
+++ b/src/main/java/de/cowtipper/cowlection/config/CredentialStorage.java
@@ -45,12 +45,12 @@ public class CredentialStorage {
// api key is valid!
Cowlection.getInstance().getMoo().setMoo(moo);
if (commandTriggered) {
- Cowlection.getInstance().getChatHelper().sendMessage(EnumChatFormatting.GREEN, "Successfully verified API key ✔");
+ Cowlection.getInstance().getChatHelper().sendMessage(EnumChatFormatting.GREEN, "[" + Cowlection.MODNAME + "] Successfully verified API key ✔");
}
} else if (commandTriggered) {
// api key is invalid
String cause = hyApiKey != null ? hyApiKey.getCause() : null;
- Cowlection.getInstance().getChatHelper().sendMessage(EnumChatFormatting.RED, "Failed to verify API key: " + (cause != null ? cause : "unknown cause :c"));
+ Cowlection.getInstance().getChatHelper().sendMessage(EnumChatFormatting.RED, "[" + Cowlection.MODNAME + "] Failed to verify API key: " + (cause != null ? cause : "unknown cause :c"));
}
});
}