We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51d7343 commit bb508a5Copy full SHA for bb508a5
BedrockCore.cpp
@@ -295,7 +295,10 @@ BedrockCore::RESULT BedrockCore::processCommand(unique_ptr<BedrockCommand>& comm
295
}
296
297
void BedrockCore::_handleCommandException(unique_ptr<BedrockCommand>& command, const SException& e) {
298
- const string& msg = "Error processing command '" + command->request.methodLine + "' (" + e.what() + "), ignoring.";
+ string msg = "Error processing command '" + command->request.methodLine + "' (" + e.what() + "), ignoring.";
299
+ if (!e.body.empty()) {
300
+ msg = msg + " Request body: " + e.body;
301
+ }
302
if (SContains(e.what(), "_ALERT_")) {
303
SALERT(msg);
304
} else if (SContains(e.what(), "_WARN_")) {
0 commit comments