mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Ref T149, indentify PHP error string
This commit is contained in:
committed by
Mathew Sutcliffe
parent
815cf75f66
commit
db05d237c2
@@ -356,6 +356,13 @@ namespace BlackMisc
|
||||
return phpError.remove(regEx);
|
||||
}
|
||||
|
||||
bool CNetworkUtils::looksLikePhpErrorMessage(const QString &errorMessage)
|
||||
{
|
||||
if (errorMessage.length() < 50) { return false; }
|
||||
if (errorMessage.contains("xdebug", Qt::CaseInsensitive)) { return true; }
|
||||
return false;
|
||||
}
|
||||
|
||||
CStatusMessageList CNetworkUtils::createNetworkReport(const QNetworkAccessManager *am)
|
||||
{
|
||||
return CNetworkUtils::createNetworkReport(CUrl(), am);
|
||||
|
||||
Reference in New Issue
Block a user