These should be warnings, not errors

This commit is contained in:
Matt Nadareski
2016-04-21 14:16:20 -07:00
parent 8e5a1365b5
commit bae642d401

View File

@@ -167,7 +167,7 @@ namespace SabreTools
// If the type is still unmatched, the data can't be imported yet // If the type is still unmatched, the data can't be imported yet
else else
{ {
_logger.Error("File " + filename + " cannot be imported at this time because it is not a known pattern.\nPlease try again with an unrenamed version."); _logger.Warning("File " + filename + " cannot be imported at this time because it is not a known pattern.\nPlease try again with an unrenamed version.");
return false; return false;
} }
@@ -185,7 +185,7 @@ namespace SabreTools
case DatType.Good: case DatType.Good:
if (!Remapping.Good.ContainsKey(fileinfo[1].Value)) if (!Remapping.Good.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection goodInfo = Regex.Match(Remapping.Good[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection goodInfo = Regex.Match(Remapping.Good[fileinfo[1].Value], _remappedPattern).Groups;
@@ -198,7 +198,7 @@ namespace SabreTools
case DatType.MAME: case DatType.MAME:
if (!Remapping.MAME.ContainsKey(fileinfo[1].Value)) if (!Remapping.MAME.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection mameInfo = Regex.Match(Remapping.MAME[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection mameInfo = Regex.Match(Remapping.MAME[fileinfo[1].Value], _remappedPattern).Groups;
@@ -211,7 +211,7 @@ namespace SabreTools
case DatType.MaybeIntro: case DatType.MaybeIntro:
if (!Remapping.MaybeIntro.ContainsKey(fileinfo[1].Value)) if (!Remapping.MaybeIntro.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection maybeIntroInfo = Regex.Match(Remapping.MaybeIntro[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection maybeIntroInfo = Regex.Match(Remapping.MaybeIntro[fileinfo[1].Value], _remappedPattern).Groups;
@@ -226,7 +226,7 @@ namespace SabreTools
case DatType.NoIntro: case DatType.NoIntro:
if (!Remapping.NoIntro.ContainsKey(fileinfo[1].Value)) if (!Remapping.NoIntro.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection nointroInfo = Regex.Match(Remapping.NoIntro[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection nointroInfo = Regex.Match(Remapping.NoIntro[fileinfo[1].Value], _remappedPattern).Groups;
@@ -255,7 +255,7 @@ namespace SabreTools
case DatType.NonGood: case DatType.NonGood:
if (!Remapping.NonGood.ContainsKey(fileinfo[1].Value)) if (!Remapping.NonGood.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection nonGoodInfo = Regex.Match(Remapping.NonGood[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection nonGoodInfo = Regex.Match(Remapping.NonGood[fileinfo[1].Value], _remappedPattern).Groups;
@@ -273,7 +273,7 @@ namespace SabreTools
if (!Remapping.Redump.ContainsKey(fileinfo[1].Value)) if (!Remapping.Redump.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
} }
@@ -308,7 +308,7 @@ namespace SabreTools
if (!Remapping.TOSEC.ContainsKey(fileinfo[1].Value)) if (!Remapping.TOSEC.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
} }
@@ -325,7 +325,7 @@ namespace SabreTools
case DatType.TruRip: case DatType.TruRip:
if (!Remapping.TruRip.ContainsKey(fileinfo[1].Value)) if (!Remapping.TruRip.ContainsKey(fileinfo[1].Value))
{ {
_logger.Error("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again"); _logger.Warning("The filename " + fileinfo[1].Value + " could not be mapped! Please check the mappings and try again");
return false; return false;
} }
GroupCollection truripInfo = Regex.Match(Remapping.TruRip[fileinfo[1].Value], _remappedPattern).Groups; GroupCollection truripInfo = Regex.Match(Remapping.TruRip[fileinfo[1].Value], _remappedPattern).Groups;