fixed looperror on no db
This commit is contained in:
parent
248e216e46
commit
50d263339e
@ -14,7 +14,7 @@ class QI {
|
|||||||
} else if ($dbinfo instanceof \SYSTEM\DB\DBInfoSQLite){
|
} else if ($dbinfo instanceof \SYSTEM\DB\DBInfoSQLite){
|
||||||
$files = static::files_sqlite();
|
$files = static::files_sqlite();
|
||||||
} else {
|
} 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'.
|
$command = 'mysql'.
|
||||||
' --host=' . $dbinfo->m_host.
|
' --host=' . $dbinfo->m_host.
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class QP {
|
|||||||
return $con->prepare(static::get_class(),static::sqlite(),$params);
|
return $con->prepare(static::get_class(),static::sqlite(),$params);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e){
|
} 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');
|
throw new \Exception('Could not understand Database Settings. Check ur Database Settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class QQ {
|
|||||||
return $con->query(static::sqlite());
|
return $con->query(static::sqlite());
|
||||||
}
|
}
|
||||||
} catch (\Exception $e){
|
} 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');
|
throw new \Exception('Could not understand Database Settings. Check ur Database Settings');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user