Added extra vault error checking
This commit is contained in:
parent
519e2cced5
commit
7e4f59f322
7
vendors/shells/vault.php
vendored
7
vendors/shells/vault.php
vendored
|
|
@ -116,7 +116,12 @@ class VaultShell extends Shell {
|
||||||
if(!$content) {
|
if(!$content) {
|
||||||
echo "No Content Found. Ignoring this email\n";
|
echo "No Content Found. Ignoring this email\n";
|
||||||
if(!$this->makeSymlink($email_filename, $vault_dir, $processed_dir)) {
|
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 {
|
else {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue