forked from mirrors/0ad
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:
@@ -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() ?
|
||||
|
||||
Reference in New Issue
Block a user