Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
Fixed FileCachePreserver::preserveEveApi() returning $data instead of…
Browse files Browse the repository at this point in the history
… $this

on YapealPreserverException.
  • Loading branch information
Dragonrun1 committed Nov 16, 2014
1 parent e5abae4 commit 4504809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Xml/FileCachePreserver.php
Expand Up @@ -87,11 +87,11 @@ public function preserveEveApi(EveApiReadInterface $data)
$this->prepareConnection($cacheTemp)
->writeXmlData($data->getEveApiXml(), $cacheTemp)
->__destruct();
} catch (YapealPreserverException $exp) {
} catch (YapealPreserverException $exc) {
$mess = 'Could NOT get XML data';
$this->getLogger()
->info($mess, ['exception' => $exp]);
return $data;
->info($mess, ['exception' => $exc]);
return $this;
}
$cacheFile = $cachePath . $data->getEveApiName() . $hash . '.xml';
rename($cacheTemp, $cacheFile);
Expand Down

0 comments on commit 4504809

Please sign in to comment.