Merge pull request #704 from anandpdoshi/anand-july-18
Fixes in error throwing and reporting
This commit is contained in:
commit
804e35ec11
2 changed files with 8 additions and 1 deletions
|
|
@ -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>',
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue