Skip to content

Commit

Permalink
fix: base node database error code (#6770)
Browse files Browse the repository at this point in the history
Description
---
Fixes database error code returned on base node start if database is
corrupted.
  • Loading branch information
SWvheerden authored Jan 30, 2025
1 parent 324d741 commit 2b9210d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/minotari_node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub async fn run_base_node_with_cli(
}

ctx.start()
.map_err(|e| ExitError::new(ExitCode::UnknownError, &format!("Could not start database.{:?}", e)))?;
.map_err(|e| ExitError::new(ExitCode::DatabaseError, &format!("Could not start database.{:?}", e)))?;

// Run, node, run!
let context = CommandContext::new(&ctx, shutdown.clone());
Expand Down

0 comments on commit 2b9210d

Please sign in to comment.