Fixed bug in client generation. Publishing nuget.

This commit is contained in:
MattMo 2023-02-06 12:15:39 -08:00
parent 5a1efa90c7
commit a1f2f4a91c

View File

@ -433,7 +433,7 @@ namespace MontoyaTech.Rest.Net
}
else
{
writer.WriteBreak().WriteLine("if (response.StatusCode == System.Net.HttpStatusCode.OK)").Indent();
writer.WriteBreak().WriteLine("if (response.StatusCode != System.Net.HttpStatusCode.OK)").Indent();
writer.WriteLine(@"throw new Exception(""Unexpected Http Response StatusCode:"" + response.StatusCode);").Outdent();
}