Skip to content

Commit

Permalink
log(archival_state): Improve error message if node is already running
Browse files Browse the repository at this point in the history
This error can be hit by a test if the client is already running. Let's
indicate that this is a possibility, so users don't delete this
directory for no good reason.
  • Loading branch information
Sword-Smith committed Nov 28, 2024
1 parent f4e3d49 commit 7ad14f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/state/archival_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ impl ArchivalState {
);
panic!(
"Could not open database; do not know how to proceed. Panicking.\n\
If you suspect the database may be corrupted, consider renaming the directory {} or removing it altogether.",
If you suspect the database may be corrupted, consider renaming the directory {}\
or removing it altogether. Or perhaps a node is already running?",
ms_db_dir_path.display()
);
}
Expand Down

0 comments on commit 7ad14f0

Please sign in to comment.