Explorar el Código

[FIX] return error cause

Gogs hace 6 años
padre
commit
9cdf436dd2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/print.js

+ 2 - 1
src/print.js

@@ -133,7 +133,8 @@ const doPrint = (socket, request) => {
         error: e => {
             socket.emit(SHOW_PRINT_STATUS, {
                 status: 'error',
-                printer: request.printer
+                printer: request.printer,
+                cause: e
             })
         }
     })