Added extra vault error checking

This commit is contained in:
Karl Cordes 2011-09-26 17:50:57 +10:00
parent 519e2cced5
commit 7e4f59f322

View file

@ -116,7 +116,12 @@ class VaultShell extends Shell {
if(!$content) {
echo "No Content Found. Ignoring this email\n";
if(!$this->makeSymlink($email_filename, $vault_dir, $processed_dir)) {
die("Unable to make symlink to process this email Critical error: {$email_filename}");
echo "Unable to make symlink to process this email Critical error: {$email_filename}\n";
if(!unlink($lockfile)) {
die("FATAL ERROR: Unable to remove vault.lock. No further Vault instances can run!");
}
}
else {
continue;