Renci.SshNet.ScpClient.CheckReturnCode C# (CSharp) Method

CheckReturnCode() private static method

Checks the return code.
private static CheckReturnCode ( Stream input ) : void
input Stream The output stream.
return void
        private static void CheckReturnCode(Stream input)
        {
            var b = ReadByte(input);

            if (b > 0)
            {
                var errorText = ReadString(input);

                throw new ScpException(errorText);
            }
        }