1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

Add recuperation of the current version from git if available (#731)

* Add recuperation of the current version from git if available
* Include version when auto-reporting an error
This commit is contained in:
Teromene
2018-06-30 09:24:22 +01:00
committed by LogMANOriginal
parent 71c29d4192
commit da6b98851c
4 changed files with 30 additions and 2 deletions

View File

@@ -64,7 +64,10 @@ function buildBridgeException($e, $bridge){
$body = 'Error message: `'
. $e->getMessage()
. "`\nQuery string: `"
. $_SERVER['QUERY_STRING'] . '`';
. $_SERVER['QUERY_STRING']
. "`\nVersion: `"
. Configuration::getVersion()
. '`';
$link = buildGitHubIssueQuery($title, $body, 'bug report', $bridge->getMaintainer());