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:
parent
af896c85ea
commit
60e455b36d
@ -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:
|
||||||
|
@ -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 };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user