diff --git a/DATabase/Core/Import.cs b/DATabase/Core/Import.cs index f995ef22..b1463843 100644 --- a/DATabase/Core/Import.cs +++ b/DATabase/Core/Import.cs @@ -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; } diff --git a/DATabase/DATabase.cs b/DATabase/DATabase.cs index d3f72ea0..e31a0ac2 100644 --- a/DATabase/DATabase.cs +++ b/DATabase/DATabase.cs @@ -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"); } } }