Formats the json response

This commit is contained in:
benbierens 2023-10-29 10:02:51 +01:00
parent d7827a4531
commit 62cc9e0587
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 4 additions and 2 deletions

View File

@ -261,8 +261,10 @@ namespace BiblioTech.Commands
try
{
var info = node.GetDebugInfo();
var json = JsonConvert.SerializeObject(info);
await context.AdminFollowup($"Node '{node.GetName()}' responded with '{json}'");
var nl = Environment.NewLine;
var json = JsonConvert.SerializeObject(info, Formatting.Indented);
var jsonInsert = $"{nl}```{nl}{json}{nl}```{nl}";
await context.AdminFollowup($"Node '{node.GetName()}' responded with {jsonInsert}");
}
catch (Exception ex)
{