mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add warnings and clean up errors
This commit is contained in:
@@ -264,7 +264,7 @@ namespace SabreTools
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
_logger.Error("Error: No suitable system for '" + filename + "' found! Please add the system and then try again.");
|
||||
_logger.Error("No suitable system for '" + filename + "' found! Please add the system and then try again.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ namespace SabreTools
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
_logger.Error("Error: No suitable source for '" + filename + "' found! Please add the source and then try again.");
|
||||
_logger.Error("No suitable source for '" + filename + "' found! Please add the source and then try again.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -510,7 +510,7 @@ Make a selection:
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
logger.Error("Error: No systems found! Please add a source and then try again.");
|
||||
logger.Error("No systems found! Please add a source and then try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -535,7 +535,7 @@ Make a selection:
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!ssldr.HasRows)
|
||||
{
|
||||
logger.Error("Error: No sources found! Please add a source and then try again.");
|
||||
logger.Error("No sources found! Please add a source and then try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ Make a selection:
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
logger.Error("Error: No sources found! Please add a source and then try again.");
|
||||
logger.Error("No sources found! Please add a source and then try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ ORDER BY sources.name COLLATE NOCASE";
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
Console.WriteLine("Error: No sources found! Please add a source and then try again.");
|
||||
logger.Warning("No sources found! Please add a source and then try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -688,7 +688,7 @@ ORDER BY systems.manufacturer, systems.system";
|
||||
// If nothing is found, tell the user and exit
|
||||
if (!sldr.HasRows)
|
||||
{
|
||||
Console.WriteLine("Error: No systems found! Please add a system and then try again.");
|
||||
logger.Warning("No systems found! Please add a system and then try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user