Skip to content

Commit

Permalink
chore: elaborate nvmf subsystem error
Browse files Browse the repository at this point in the history
Signed-off-by: Diwakar Sharma <[email protected]>
  • Loading branch information
dsharma-dc committed Jan 7, 2025
1 parent 0722218 commit d6b31a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nvmeadm/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ pub enum NvmeError {
#[snafu(display("No nvmf subsystems found"))]
NoSubsystems,
#[snafu(display(
"Nvmf subsystem with nqn: {}, host: {}, port: {} not found",
"Nvmf subsystem with nqn: {}, host: {}, port: {}, transport: {} not found",
nqn,
host,
port
port,
transport
))]
SubsystemNotFound {
nqn: String,
host: String,
port: u16,
transport: String,
},
#[snafu(display("Connect in progress"))]
ConnectInProgress,
Expand Down
1 change: 1 addition & 0 deletions nvmeadm/src/nvmf_subsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ impl Subsystem {
nqn: nqn.to_string(),
host: host.to_string(),
port: *port,
transport: transport.to_string(),
}),
Some(subsys) => Ok(subsys),
}
Expand Down

0 comments on commit d6b31a8

Please sign in to comment.