fixed looperror on no db

This commit is contained in:
Ulf Gebhardt 2015-10-04 00:59:20 +02:00
parent 248e216e46
commit 50d263339e
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ class QI {
} else if ($dbinfo instanceof \SYSTEM\DB\DBInfoSQLite){
$files = static::files_sqlite();
} else {
throw new \SYSTEM\LOG\ERROR(static::get_class().' Could not understand Database Settings. Check ur Database Settings');}
throw new \Exception(static::get_class().' Could not understand Database Settings. Check ur Database Settings');}
$command = 'mysql'.
' --host=' . $dbinfo->m_host.

View File

@ -17,7 +17,7 @@ class QP {
return $con->prepare(static::get_class(),static::sqlite(),$params);
}
} catch (\Exception $e){
throw new \SYSTEM\LOG\ERROR(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);}
throw new \Exception(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);}
throw new \Exception('Could not understand Database Settings. Check ur Database Settings');
}

View File

@ -18,7 +18,7 @@ class QQ {
return $con->query(static::sqlite());
}
} catch (\Exception $e){
throw new \SYSTEM\LOG\ERROR(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);}
throw new \Exception(static::get_class().' failed causing: '.$e->getMessage(),$e->getCode(),$e);}
throw new \Exception('Could not understand Database Settings. Check ur Database Settings');
}