Skip to content

Commit

Permalink
Merged master changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jul 30, 2018
2 parents aee82bd + 24cbe64 commit 31b2cbf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Types/SchemaException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,22 @@ private static string CreateErrorMessage(SchemaError error)
return $"{error.Message} - Type: {error.Type.Name}";
}
}

private static void PrintErrors(IReadOnlyCollection<SchemaError> errors)
{
Debug.WriteLine("Schema Errors:");
foreach (SchemaError error in errors)
{
if (error.Type == null)
{
Debug.WriteLine(error.Message);
}
else
{
Debug.WriteLine(
$"{error.Message} - Type: {error.Type.Name}");
}
}
}
}
}

0 comments on commit 31b2cbf

Please sign in to comment.