From 9a21e32ac0d019c18768e3d6fd9386bf75b2a471 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Thu, 5 Dec 2024 20:23:21 +0100 Subject: [PATCH] cleanup int casts (#462) regex replace changed too much --- .../Pipelines/ObjectTemplating/YamlObjectReader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sdk/DTPipelines/Pipelines/ObjectTemplating/YamlObjectReader.cs b/src/Sdk/DTPipelines/Pipelines/ObjectTemplating/YamlObjectReader.cs index 843021e5312..16fc2dcc976 100644 --- a/src/Sdk/DTPipelines/Pipelines/ObjectTemplating/YamlObjectReader.cs +++ b/src/Sdk/DTPipelines/Pipelines/ObjectTemplating/YamlObjectReader.cs @@ -71,7 +71,7 @@ public Boolean AllowLiteral(out LiteralToken value) // Not plain style if (scalar.Style != ScalarStyle.Plain) { - throw new NotSupportedException($"The scalar style '{scalar.Style}' on line (int) {scalar.Start.Line} and column (int) {scalar.Start.Column} is not valid with the tag '{scalar.Tag}'"); + throw new NotSupportedException($"The scalar style '{scalar.Style}' on line {scalar.Start.Line} and column {scalar.Start.Column} is not valid with the tag '{scalar.Tag}'"); } // Boolean, Float, Integer, or Null @@ -736,7 +736,7 @@ private void ThrowInvalidValue( Scalar scalar, String tag) { - throw new NotSupportedException($"The value '{scalar.Value}' on line (int) {scalar.Start.Line} and column (int) {scalar.Start.Column} is invalid for the type '{scalar.Tag}'"); + throw new NotSupportedException($"The value '{scalar.Value}' on line {scalar.Start.Line} and column {scalar.Start.Column} is invalid for the type '{scalar.Tag}'"); } private const String c_booleanTag = "tag:yaml.org,2002:bool";