From: Joey Schulze Date: Wed, 23 Jan 2013 22:44:28 +0000 (+0100) Subject: Log error in error_log and don't remove temporary directory X-Git-Url: https://git.infodrom.org/?p=misc%2Fhallinta-metro;a=commitdiff_plain;h=374a3b90ba11ab13aaa19e274208abfa07ac357e Log error in error_log and don't remove temporary directory --- diff --git a/ordersatz_pos.php b/ordersatz_pos.php index 65a7608..e8a9135 100644 --- a/ordersatz_pos.php +++ b/ordersatz_pos.php @@ -244,7 +244,8 @@ function cb_pdf() $result = ordersatz_write($_SESSION['ordersatz'], $tmpdir, false); if ($result !== true) { - rm_tempdir($tmpdir); + error_log($tmpdir); + error_log($result); return array('error' => $result); }