public static void PrintError()

in Notation.Plugin.AzureKeyVault/Protocol/Error.cs [31:39]


        public static void PrintError(string errorCode, string errorMessage)
        {
            // the errorMessage may has 
            // "Path: $ | LineNumber: 0 | BytePositionInLine: 0." suffix for
            // exception's Message, so remove it.
            errorMessage = errorMessage.Split("Path: $ |")[0];
            var errorResponse = new ErrorResponse(errorCode, errorMessage);
            Console.Error.WriteLine(errorResponse.ToJson());
        }