Fix more verbose logging

This commit is contained in:
Matt Nadareski
2016-03-30 12:31:41 -07:00
parent e3928fa002
commit 994ead77bb
2 changed files with 5 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ namespace SabreTools
// If nothing is found, tell the user and exit
if (!sldr.HasRows)
{
_logger.Log("Error: No suitable system found! Please add the system and then try again.");
_logger.Log("Error: No suitable system for '" + filename + "' found! Please add the system and then try again.");
return false;
}
@@ -281,7 +281,7 @@ namespace SabreTools
// If nothing is found, tell the user and exit
if (!sldr.HasRows)
{
_logger.Log("Error: No suitable source found! Please add the source and then try again.");
_logger.Log("Error: No suitable source '" + filename + "' found! Please add the source and then try again.");
return false;
}

View File

@@ -837,16 +837,16 @@ Make a selection:
{
if (DBTools.RemoveSystem(sysid, _connectionString))
{
Console.WriteLine("System '" + sysid + "' removed!");
logger.Log("System '" + sysid + "' removed!");
}
else
{
Console.WriteLine("System with id '" + sysid + "' could not be removed.");
logger.Log("System with id '" + sysid + "' could not be removed.");
}
}
else
{
Console.WriteLine("Invalid input");
logger.Log("Invalid input");
}
}
}