fix: show fail message
This commit is contained in:
parent
4d8d4acec4
commit
a1ae7fcbc8
@ -30,7 +30,14 @@ frappe.ui.form.on("Rename Tool", {
|
|||||||
select_doctype: frm.doc.select_doctype
|
select_doctype: frm.doc.select_doctype
|
||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
frm.get_field("rename_log").$wrapper.html(r.message.join("<br>"));
|
let html = r.message.join("<br>");
|
||||||
|
|
||||||
|
if (r.exc) {
|
||||||
|
r.exc = JSON.parse(r.exc);
|
||||||
|
html += "<br>" + r.exc.join("<br>");
|
||||||
|
}
|
||||||
|
|
||||||
|
frm.get_field("rename_log").$wrapper.html(html);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user