Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Add missing information to generated issue message
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Jul 6, 2020
1 parent 8fd9fd8 commit 1fb01de
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import std.range: repeat;
import std.array: join;
import std.conv: to;
import std.regex: matchFirst;
import std.base64: Base64URL;

debug import std.stdio: writeln;
debug import std.string: format;
Expand Down Expand Up @@ -405,25 +406,25 @@ void createWarningDialog(const string message, HWND hWnd = null) nothrow {

/// Creates a GitHub issue body with the data from an Exception.
string createIssueMessage(const Throwable error) {
auto winVer = WindowsVersion.get();
const auto browsers = getAllAvailableBrowsers();

// dfmt off
return ISSUE_TEMPLATE.strip().formatString([
"errorFile": error.file,
"errorLine": error.line.to!string(),
"errorMessage": error.message,
"browserName": "",
"browserName": browsers.nameFromPath(DeflectorSettings.browserPath),
"browserPath": DeflectorSettings.browserPath,
"useProfile": DeflectorSettings.useProfile.to!string(),
"profileName": DeflectorSettings.profileName,
"engineName": "",
"engineName": browsers.nameFromUrl(DeflectorSettings.engineURL),
"engineUrl": DeflectorSettings.engineURL,
"queryString": "",
"queryUrl": "",
"windowsRelease": winVer.release,
"windowsBuild": winVer.build,
"windowsEdition": winVer.edition,
"insidersPreview": ""
"windowsRelease": WindowsVersion.release,
"windowsBuild": WindowsVersion.build,
"windowsEdition": WindowsVersion.edition,
"insidersPreview": WindowsVersion.insiderRing
]).to!string();
// dfmt on
}
Expand Down

0 comments on commit 1fb01de

Please sign in to comment.