mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix more verbose logging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user