mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
More specific exception types for better error handling
This commit is contained in:
parent
5cd7ae72f4
commit
4c560210cd
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
string schemaKey = _settings.DoublePinyinSchema.ToString(); // Convert enum to string
|
||||
if (!table.TryGetValue(schemaKey, out var value))
|
||||
{
|
||||
throw new InvalidOperationException("DoublePinyinSchema is invalid or double pinyin table is broken.");
|
||||
throw new ArgumentException("DoublePinyinSchema is invalid or double pinyin table is broken.");
|
||||
}
|
||||
currentDoublePinyinTable = new ReadOnlyDictionary<string, string>(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue