Fixed the Logging system to actually be able to handle errors. Database is also fixed to use directories.
This commit is contained in:
@@ -87,7 +87,7 @@ namespace ehs
|
||||
UInt_64 sent = Send((Byte*)&str[offset], size - offset);
|
||||
if (!sent)
|
||||
{
|
||||
EHS_LOG_INT("Error", 0, "Failed to send data.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to send data.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ namespace ehs
|
||||
UInt_64 received = Receive((Byte*)&buffer[offset], contentLength - offset);
|
||||
if (!received)
|
||||
{
|
||||
EHS_LOG_INT("Error", 0, "Failed to receive data.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ namespace ehs
|
||||
UInt_64 received = Receive((Byte*)&hexSize[offset], 1);
|
||||
if (!received)
|
||||
{
|
||||
EHS_LOG_INT("Error", 0, "Failed to receive data.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
|
||||
return 0;
|
||||
}
|
||||
else if (hexSize[offset] == '\r')
|
||||
@@ -322,7 +322,7 @@ namespace ehs
|
||||
UInt_64 received = Receive((Byte*)&buffer[offset], chunkSize + 2 - offset);
|
||||
if (!received)
|
||||
{
|
||||
EHS_LOG_INT("Error", 0, "Failed to receive data.");
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Failed to receive data.");
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user