Skip to content

Commit

Permalink
Fixed error message (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wvven authored Dec 4, 2024
1 parent 4babdc0 commit 26d7445
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fiscal_epos_print/static/src/js/epson_epos_print.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ export class EpsonEposPrint {

body_msg = `${_t("An error happened while sending data to the printer.\nError code: ")}${res.code || ""}` +
`${_t("\nStatus: ")}${res.status || ""}` +
` ${info || ""}\n${_t("Error Message: ")}${msgPrinter}`;
`${_t("\nPrinter Code: ")}${info || ""}\n${_t("Error Message: ")}${msgPrinter}`;
if (order) {
body_msg += `\n${_t("Order Details.\nOrder lines: {")}${order_lines_msg}` +
`${_t(" }\nPayment Lines: {")}${order_payment_msg}\nTechnical details: \nXML: ")}${order.fp_xml}`;
`${_t(" }\nPayment Lines: {")}${order_payment_msg}` +
`${_t(" }\nTechnical details: \nXML: ")}${order.fp_xml}`;
}
this.popup.add(ErrorTracebackPopup, {
title: _t("Connection to the printer failed"),
Expand Down

0 comments on commit 26d7445

Please sign in to comment.