mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-10-12 13:39:01 +01:00
Emit call stack for wkhtmltopdf errors.
This commit is contained in:
1 parent
af896c85ea
commit
60e455b36d
2 files changed
+2
-1
No files matched your search
@@ -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 };
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user