mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
feat: indicate if exception was included, but none happened
This commit is contained in:
parent
02719126f3
commit
7b0895719f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue