Print out the exceptions for Russian games
This commit is contained in:
parent
76885ca119
commit
415646165a
|
@ -55,4 +55,12 @@ abstract class Source {
|
||||||
curl_close($curl);
|
curl_close($curl);
|
||||||
return $resp;
|
return $resp;
|
||||||
}
|
}
|
||||||
|
public function check() {
|
||||||
|
try {
|
||||||
|
$this->print();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo $e->getMessage();
|
||||||
|
echo $e->getTraceAsString();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
15
english.php
15
english.php
|
@ -14,16 +14,11 @@ if (PHP_SAPI !== 'cli') {
|
||||||
echo '<!DOCTYPE html><html><body><code><pre>';
|
echo '<!DOCTYPE html><html><body><code><pre>';
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
(new Source\Textadventures())->check();
|
||||||
(new Source\Textadventures())->print();
|
(new Source\IFDB())->check();
|
||||||
(new Source\IFDB())->print();
|
(new Source\Dashingdon())->check();
|
||||||
(new Source\Dashingdon())->print();
|
(new Source\Itch())->check();
|
||||||
(new Source\Itch())->print();
|
(new Source\Hyperbook())->check();
|
||||||
(new Source\Hyperbook())->print();
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo $e->getMessage();
|
|
||||||
var_dump($e->getTrace());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PHP_SAPI !== 'cli') {
|
if (PHP_SAPI !== 'cli') {
|
||||||
echo '</pre></code></body></html>';
|
echo '</pre></code></body></html>';
|
||||||
|
|
18
russian.php
18
russian.php
|
@ -14,16 +14,14 @@ if (PHP_SAPI !== 'cli') {
|
||||||
echo '<!DOCTYPE html><html><body><code><pre>';
|
echo '<!DOCTYPE html><html><body><code><pre>';
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
(new Source\Urq())->check();
|
||||||
//(new Source\Urq())->print();
|
(new Source\Qsp())->check();
|
||||||
(new Source\Qsp())->print();
|
(new Source\Kvester())->check();
|
||||||
(new Source\Kvester())->print();
|
(new Source\Apero())->check();
|
||||||
(new Source\Apero())->print();
|
(new Source\Instead())->check();
|
||||||
(new Source\Instead())->print();
|
(new Source\Storymaze())->check();
|
||||||
(new Source\Storymaze())->print();
|
(new Source\Hyperbook())->check();
|
||||||
(new Source\Hyperbook())->print();
|
(new Source\Questbook())->check();
|
||||||
(new Source\Questbook())->print();
|
|
||||||
} catch (Exception $e) {}
|
|
||||||
|
|
||||||
if (PHP_SAPI !== 'cli') {
|
if (PHP_SAPI !== 'cli') {
|
||||||
echo '</pre></code></body></html>';
|
echo '</pre></code></body></html>';
|
||||||
|
|
Reference in a new issue