diff --git a/system/libs/pot/OTS_MonstersList.php b/system/libs/pot/OTS_MonstersList.php index ffa8a648..8b1372cc 100644 --- a/system/libs/pot/OTS_MonstersList.php +++ b/system/libs/pot/OTS_MonstersList.php @@ -61,8 +61,8 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess // check if monsters.xml exist if(!@file_exists($this->monstersPath . 'monsters.xml')) { - log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . '). Error: ' . print_r(error_get_last(), true)); - throw new Exception('Error: Cannot load monsters.xml. File not found. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . ').'); + throw new Exception('Error: Cannot load monsters.xml. File not found.'); } // loads monsters mapping file diff --git a/system/libs/pot/OTS_SpellsList.php b/system/libs/pot/OTS_SpellsList.php index 918463ed..cfd1a581 100644 --- a/system/libs/pot/OTS_SpellsList.php +++ b/system/libs/pot/OTS_SpellsList.php @@ -95,8 +95,8 @@ class OTS_SpellsList implements IteratorAggregate, Countable { // check if spells.xml exist if(!@file_exists($file)) { - log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . '). Error: ' . print_r(error_get_last(), true)); - throw new Exception('Error: Cannot load spells.xml. File not found. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . ').'); + throw new Exception('Error: Cannot load spells.xml. File not found.'); } // loads monsters mapping file