mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Emit call stack for wkhtmltopdf errors.
This commit is contained in:
parent
af896c85ea
commit
60e455b36d
@ -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:
|
||||
|
@ -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 };
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user