Fix UserReporter curl error message being cut off after the first colon following 0da7e822ff, refs 41395ffe5d, b496168d0a.

Informs maintainers of the UserReporter backend why it's currently
broken.

This was SVN commit r21897.
This commit is contained in:
elexis 2018-10-04 22:24:13 +00:00
parent 82740d9278
commit c898c19735

View file

@ -30,7 +30,7 @@ var g_UserReportStatusFormat = {
"errorCode": data[1]
}),
"failed": data => sprintf(translate("upload failed (%(errorMessage)s)"), {
"errorMessage": uneval(data[2])
"errorMessage": data.slice(2).join(":")
})
};
@ -69,7 +69,7 @@ function updateUserReportButtons()
function updateUserReportStatus()
{
let statusData = Engine.GetUserReportStatus().split(/:/, 3);
let statusData = Engine.GetUserReportStatus().split(":");
Engine.GetGUIObjectByName("userReportText").caption =
Engine.IsUserReportEnabled() ?