Skip to content
Snippets Groups Projects
Commit c40c695d authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

FIX #4036 Direct printing module without any driver configured, shows an unformatted error message

parent c6093fff
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ class dolprintIPP ...@@ -66,7 +66,7 @@ class dolprintIPP
*/ */
function list_jobs($module) function list_jobs($module)
{ {
global $conf, $db, $bc; global $conf, $db, $bc, $langs;
include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php'; include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php';
$ipp = new CupsPrintIPP(); $ipp = new CupsPrintIPP();
$ipp->setLog(DOL_DATA_ROOT.'/printipp.log','file',3); // logging very verbose $ipp->setLog(DOL_DATA_ROOT.'/printipp.log','file',3); // logging very verbose
...@@ -96,7 +96,8 @@ class dolprintIPP ...@@ -96,7 +96,8 @@ class dolprintIPP
} }
catch(Exception $e) catch(Exception $e)
{ {
print $e->getMessage(); setEventMessage('[printipp] '.$langs->trans('CoreErrorMessage'), 'errors');
dol_syslog($e->getMessage(), LOG_ERR);
} }
print '<table width="100%" class="noborder">'; print '<table width="100%" class="noborder">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment