feat: throw when unrecognized extension is loaded

This commit is contained in:
goat 2021-01-28 17:52:41 +01:00
parent 4346efa881
commit c532b8a7c0

View file

@ -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;