1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 16:30:11 +00: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:
msg = chalk.red.bold('ERROR: PDF generation failed. ') + chalk.red('Make sure wkhtmltopdf is ' +
'installed and accessible from your path.');
if( ex.inner ) msg += chalk.red('\n' + ex.inner);
break;
case HACKMYSTATUS.invalid:

View File

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