mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-13 03:16:38 +02:00
- added function to mark a channel for swapping + swap with current channel
- replaced misuse of "FileLoadException" with a custom LoaderException to handle file loading issues with better continue/fail logic - removed "Save As" and replaced it with "Convert list" menu item that shows information on how to use a reference list instead of direct conversion
This commit is contained in:
@@ -52,7 +52,7 @@ namespace ChanSort.Api
|
||||
|
||||
var line = stream.ReadLine();
|
||||
if (line != null && line.StartsWith("--------") && line.Contains(" Program Data!--------"))
|
||||
throw new FileLoadException("ignoring .csv file with Sharp/Dyon/Blaupunkt/Hisense header line");
|
||||
throw LoaderException.TryNext("ignoring .csv file with Sharp/Dyon/Blaupunkt/Hisense header line");
|
||||
|
||||
try
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace ChanSort.Api
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new FileLoadException($"Error in reference file line #{lineNr}: {line}", ex);
|
||||
throw LoaderException.TryNext($"Error in reference file line #{lineNr}: {line}", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user