Merge pull request #704 from anandpdoshi/anand-july-18

Fixes in error throwing and reporting
This commit is contained in:
Rushabh Mehta 2014-07-18 14:56:28 +05:30
commit 804e35ec11
2 changed files with 8 additions and 1 deletions

View file

@ -254,6 +254,13 @@ frappe.request.report_error = function(xhr, request_opts) {
.toggle(error_report_email ? true : false)
.on("click", function() {
var error_report_message = [
'<h5>Please type some additional information that could help us reproduce this issue:</h5>',
'<div style="min-height: 100px; border: 1px solid #bbb; \
border-radius: 5px; padding: 15px; margin-bottom: 15px;"></div>',
'<hr>',
'<h5>Route</h5>',
'<pre>' + frappe.get_route_str() + '</pre>',
'<hr>',
'<h5>Error Report</h5>',
'<pre>' + exc + '</pre>',
'<hr>',

View file

@ -17,7 +17,7 @@ frappe.messages.waiting = function(parent, msg, bar_percent) {
frappe.throw = function(msg) {
msgprint(msg);
throw msg;
throw new Error(msg);
}
frappe.confirm = function(message, ifyes, ifno) {