Browse Source

[FIX] return error cause

Gogs 6 years ago
parent
commit
9cdf436dd2
1 changed files with 2 additions and 1 deletions
  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
             })
         }
     })