diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index 9ed16126..73442dbe 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -297,7 +297,7 @@ namespace Cxxi.Generators.CLI param.Visit(marshal); if (string.IsNullOrEmpty(marshal.Return)) - return null; + throw new Exception("Cannot marshal argument of function"); if (!string.IsNullOrWhiteSpace(marshal.SupportBefore)) WriteLine(marshal.SupportBefore);