Fix #4612: Return non-zero exit code when CLI session ends with error (#4621)

Signed-off-by: jalateras <jima@comware.com.au>
This commit is contained in:
Jim Alateras
2025-09-30 00:08:31 +10:00
committed by GitHub
parent 426001e57f
commit 3844209b78
+1
View File
@@ -1247,6 +1247,7 @@ pub async fn cli() -> Result<()> {
.await;
if let Err(e) = session.interactive(None).await {
eprintln!("Session ended with error: {}", e);
std::process::exit(1);
}
Ok(())
};