From 5abd9879fc1ff0d82e0b46dd90e08efbe9084ded Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Wed, 2 May 2018 17:46:42 -0400 Subject: [PATCH] immutable.pb.js missing extra {} for exception message --- src/lib/api/service_compiler/templates/c#/immutable.pb.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/api/service_compiler/templates/c#/immutable.pb.cs b/src/lib/api/service_compiler/templates/c#/immutable.pb.cs index fd4b39b3e..32ad24ae4 100644 --- a/src/lib/api/service_compiler/templates/c#/immutable.pb.cs +++ b/src/lib/api/service_compiler/templates/c#/immutable.pb.cs @@ -20,11 +20,11 @@ namespace {{package}} { public void WriteTo(CodedOutputStream output) => _impl.WriteTo(output); public {{name}}Immutable({{name}} src) { - if (src == null) throw new NullReferenceException("{name}"); + if (src == null) throw new NullReferenceException("{{name}}"); _impl = src.Clone(); } private {{name}}Immutable({{name}} src, bool clone) { - if (src == null) throw new NullReferenceException("{name}"); + if (src == null) throw new NullReferenceException("{{name}}"); _impl = clone ? src.Clone() : src; }