From 7b0895719f4ba6cef7afef34e8f71431db218191 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Thu, 7 Oct 2021 20:28:38 +0200 Subject: [PATCH] feat: indicate if exception was included, but none happened --- Dalamud/Support/BugBait.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Support/BugBait.cs b/Dalamud/Support/BugBait.cs index 947fcdb6a..2cf87b387 100644 --- a/Dalamud/Support/BugBait.cs +++ b/Dalamud/Support/BugBait.cs @@ -39,7 +39,9 @@ namespace Dalamud.Support }; if (includeException) - model.Exception = Troubleshooting.LastException?.ToString(); + { + model.Exception = Troubleshooting.LastException == null ? "Was included, but none happened" : Troubleshooting.LastException?.ToString(); + } var postContent = new StringContent(JsonConvert.SerializeObject(model), Encoding.UTF8, "application/json"); var response = await client.PostAsync(BugBaitUrl, postContent);