Standardize error messages, formatting, and code style. Refine --help text for consistency. Update comments for clarity and tone alignment.
This commit is contained in:
@@ -20,13 +20,13 @@ pub enum PortholeError {
|
||||
#[error("only one of -l/--local, -r/--remote, -d/--dynamic may be given")]
|
||||
MultipleMappingKinds,
|
||||
|
||||
#[error("invalid forward spec '{0}': expected [bind:]port:host:hostport (or [bind:]port for -d)")]
|
||||
#[error("invalid forward spec '{0}': expected [BIND:]PORT:HOST:PORT (or [BIND:]PORT for -d)")]
|
||||
InvalidMapping(String),
|
||||
|
||||
#[error("invalid --via hop '{0}': expected [user@]host[:port]")]
|
||||
#[error("invalid --via hop '{0}': expected [USER@]HOST[:PORT]")]
|
||||
InvalidVia(String),
|
||||
|
||||
#[error("--via is required: at least one hop (its last entry is the ssh connection target)")]
|
||||
#[error("--via is required: at least one hop (connection target)")]
|
||||
NoViaHosts,
|
||||
|
||||
#[error("nothing to do: {0}")]
|
||||
|
||||
Reference in New Issue
Block a user