From 7ad14f0033a688c9612091723edf320dd5c28686 Mon Sep 17 00:00:00 2001 From: sword_smith Date: Thu, 28 Nov 2024 17:19:25 +0100 Subject: [PATCH] log(archival_state): Improve error message if node is already running 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. --- src/models/state/archival_state.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/state/archival_state.rs b/src/models/state/archival_state.rs index aca6fa2be..b08d17ee7 100644 --- a/src/models/state/archival_state.rs +++ b/src/models/state/archival_state.rs @@ -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() ); }