Something went wrong. Try again.
an experimental, infinite-canvas terminal multiplexer using gpui
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455use std::io;
use protocol::ProtocolError;
#[derive(Debug, thiserror::Error)]pub enum Error { #[error("connecting to {addr}: {reason}")] Connect { addr: String, reason: String },
#[error("connecting to {addr}: no answer in time")] ConnectTimeout { addr: String },
#[error("opening the control stream to {addr}: {reason}")] ControlStream { addr: String, reason: String },
#[error("could not load this client's key: {reason}")] ClientKey { reason: String },
#[error( "the daemon at {addr} has not paired this client; on that machine, run `tarp pair {client}`" )] NotPaired { addr: String, client: String },
#[error("starting the daemon writer thread")] WriterThread(#[source] io::Error),
#[error("starting the daemon reader thread")] ReaderThread(#[source] io::Error),
#[error( "this daemon speaks protocol {daemon} but this build speaks {client}; it is \ probably left over from an older version, so run `tarp kill` to end that \ session and start fresh" )] ProtocolVersion { daemon: u32, client: u32 },
#[error("the daemon closed the connection: {message}")] Closing { message: String },
#[error("the daemon closed the connection")] Closed,
#[error("the daemon did not answer in time")] Timeout,
#[error("the daemon refused: {message}")] Refused { message: String },
#[error("the method attached")] Attached,
#[error(transparent)] Protocol(#[from] ProtocolError),}