mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
feat: throw when unrecognized extension is loaded
This commit is contained in:
parent
4346efa881
commit
c532b8a7c0
1 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,10 @@ namespace Penumbra.Importer
|
|||
|
||||
case ".ttmp2":
|
||||
ImportV2ModPack( modPackFile );
|
||||
return;
|
||||
return;
|
||||
|
||||
default:
|
||||
throw new ArgumentException( $"Unrecognized modpack format: {modPackFile.Extension}", nameof(modPackFile) );
|
||||
}
|
||||
|
||||
State = ImporterState.Done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue