@@ -3747,7 +3747,8 @@ static void PS_Open(pDevDesc dd, PostScriptDesc *pd)
37473747 char errbuf [strlen (pd -> command ) + 1 ];
37483748 strcpy (errbuf , pd -> command );
37493749 PS_cleanup (4 , dd , pd );
3750- error (_ ("cannot open 'postscript' pipe to '%s'" ), errbuf );
3750+ error (_ ("cannot open 'postscript' pipe to '%s' (reason: %s)" ),
3751+ errbuf , strerror (errno ));
37513752 return ;
37523753 }
37533754 } else if (pd -> filename [0 ] == '|' ) {
@@ -3757,8 +3758,8 @@ static void PS_Open(pDevDesc dd, PostScriptDesc *pd)
37573758 char errbuf [strlen (pd -> filename + 1 ) + 1 ];
37583759 strcpy (errbuf , pd -> filename + 1 );
37593760 PS_cleanup (4 , dd , pd );
3760- error (_ ("cannot open 'postscript' pipe to '%s'" ),
3761- errbuf );
3761+ error (_ ("cannot open 'postscript' pipe to '%s' (reason: %s) " ),
3762+ errbuf , strerror ( errno ) );
37623763 return ;
37633764 }
37643765 } else {
@@ -8206,7 +8207,8 @@ static void PDF_Open(pDevDesc dd, PDFDesc *pd)
82068207 char errbuf [strlen (pd -> cmd ) + 1 ];
82078208 strcpy (errbuf , pd -> cmd );
82088209 PDFcleanup (7 , pd );
8209- error (_ ("cannot open 'pdf' pipe to '%s'" ), errbuf );
8210+ error (_ ("cannot open 'pdf' pipe to '%s' (reason: %s)" ),
8211+ errbuf , strerror (errno ));
82108212 return ;
82118213 }
82128214 pd -> open_type = 1 ;
0 commit comments