Skip to content

Commit 162da66

Browse files
author
James Forshaw
committed
Minor error tweaks.
1 parent 4ebd906 commit 162da66

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

DotNetToJScript/VBAGenerator.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ public string GenerateScript(byte[] serialized_object, string entry_class_name,
4242
{
4343
if (version != RuntimeVersion.None)
4444
{
45-
throw new ArgumentException("VBA output does not support version detection");
45+
throw new ArgumentException("VBA generator does not support version detection");
46+
}
47+
48+
if (enable_debug)
49+
{
50+
throw new ArgumentException("VBA generator does not support debug output");
4651
}
4752

4853
string hex_encoded = BitConverter.ToString(serialized_object).Replace("-", "");

0 commit comments

Comments
 (0)