Example #1
0
        private void WriteError(string message, params object[] messageArgs)
        {
            var ex          = new XdtTransformationException(string.Format(message, messageArgs));
            var errorRecord = new ErrorRecord(ex, "", ErrorCategory.NotSpecified, null);

            _commandRuntime.WriteError(errorRecord);
        }