Skip to content

Commit

Permalink
Merge pull request #66 from pentium10/master
Browse files Browse the repository at this point in the history
fix for #65
  • Loading branch information
pentium10 committed Sep 8, 2014
2 parents 4d46de7 + b290b11 commit 923b2a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ protected function deleteAllFromTube($state, $tube) {
} while (!empty($job));
} catch (Exception $e) {
// there might be no jobs to peek at, and peekReady raises exception in this situation
echo $e->getMessage();
// skip not found exception
if (strpos($e->getMessage(), Pheanstalk_Response::RESPONSE_NOT_FOUND) === false) {
$this->_errors[] = $e->getMessage();
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<?php

/**
* @link https://github.com/ptrofimov/beanstalk_console
* @link http://kr.github.com/beanstalkd/
* @author Petr Trofimov, Sergey Lysenko
*/
error_reporting(E_ALL);
ini_set('display_errors', true);
if (ob_get_level()) {
ob_end_clean();
}

require_once '../lib/include.php';
$console = new Console;
Expand All @@ -17,4 +21,4 @@
extract($tplVars);
?>

<?php require_once "../lib/tpl/{$_tplMain}.php"?>
<?php require_once "../lib/tpl/{$_tplMain}.php" ?>

0 comments on commit 923b2a0

Please sign in to comment.