fix: show fail message

This commit is contained in:
Devin Slauenwhite 2022-02-24 16:36:30 -05:00
parent 4d8d4acec4
commit a1ae7fcbc8

View File

@ -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);
} }
}); });
}); });