Browse Source

Improved the exception message for marshaling failures.

pull/146/merge
triton 12 years ago
parent
commit
c41d195b88
  1. 3
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

3
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -943,7 +943,8 @@ namespace CppSharp.Generators.CLI
param.Visit(marshal); param.Visit(marshal);
if (string.IsNullOrEmpty(marshal.Context.Return)) if (string.IsNullOrEmpty(marshal.Context.Return))
throw new Exception("Cannot marshal argument of function"); throw new Exception(string.Format("Cannot marshal argument of function '{0}'",
function.QualifiedOriginalName));
if (!string.IsNullOrWhiteSpace(marshal.Context.SupportBefore)) if (!string.IsNullOrWhiteSpace(marshal.Context.SupportBefore))
Write(marshal.Context.SupportBefore); Write(marshal.Context.SupportBefore);

Loading…
Cancel
Save