You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
codeGenerator.AppendLine("if (subReader.Tag != 1) { throw new InvalidOperationException(\"Can't read well known wrapper, because of an invalid tag\"); }");
@@ -74,15 +72,26 @@ public async Task<Packets> LoadSniff(RefCountedArena allocator, string path, int
74
72
}
75
73
}
76
74
path=parsedPath;
75
+
varversionType2=awaitGetVersionAndDump(path);
76
+
if(!versionType2.HasValue)
77
+
{
78
+
thrownewParserException("Parser didn't generate the output file. Aborting. Open debug console (Help->Open Debug Console) and report the issue on github.");
$"Your parser generated an output file in a different format ({versionType2.Value.Item1}) than expected (>= {StructureVersion.MinProtobufStructureVersion} and <= {StructureVersion.MaxProtobufStructureVersion}). Aborting. If you downloaded the parser from the internet, make sure you have the latest version.");
0 commit comments