Index: chrome/browser/resources/google_now/utility.js |
diff --git a/chrome/browser/resources/google_now/utility.js b/chrome/browser/resources/google_now/utility.js |
index a987dd1420eea173484c70852e4c96190862cd7e..3292180e58020d0eb7dfdf4037cb9968d46baf11 100644 |
--- a/chrome/browser/resources/google_now/utility.js |
+++ b/chrome/browser/resources/google_now/utility.js |
@@ -114,8 +114,12 @@ function sendErrorReport(error) { |
} |
} |
+ var errorText = encodeURIComponent(error.name); |
+ if (error.canSendMessageToServer) |
+ errorText = errorText + ': ' + error.message; |
arv (Not doing code reviews)
2013/09/03 17:01:30
What about the message? Is it already encoded?
vadimt
2013/09/03 17:58:44
Gosh
|
+ |
var requestParameters = |
- 'error=' + encodeURIComponent(error.name) + |
+ 'error=' + errorText + |
'&script=' + encodeURIComponent(file) + |
'&line=' + encodeURIComponent(line) + |
'&trace=' + encodeURIComponent(filteredStack); |