1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-07-02 16:30:04 +01:00

Emit call stack for wkhtmltopdf errors.

This commit is contained in:
hacksalot 2016-01-07 10:54:27 -05:00
parent af896c85ea
commit 60e455b36d
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@ Error-handling routines for HackMyResume.
case HACKMYSTATUS.wkhtmltopdf: case HACKMYSTATUS.wkhtmltopdf:
msg = chalk.red.bold('ERROR: PDF generation failed. ') + chalk.red('Make sure wkhtmltopdf is ' + msg = chalk.red.bold('ERROR: PDF generation failed. ') + chalk.red('Make sure wkhtmltopdf is ' +
'installed and accessible from your path.'); 'installed and accessible from your path.');
if( ex.inner ) msg += chalk.red('\n' + ex.inner);
break; break;
case HACKMYSTATUS.invalid: case HACKMYSTATUS.invalid:

View File

@ -45,7 +45,7 @@ Definition of the HtmlPdfGenerator class.
catch(ex) { catch(ex) {
// { [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', ... } // { [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', ... }
// { [Error: ENOENT] } // { [Error: ENOENT] }
throw { fluenterror: this.codes.wkhtmltopdf }; throw { fluenterror: this.codes.wkhtmltopdf, inner: ex };
} }
}, },