diff --git a/node/src/main.rs b/node/src/main.rs index 90f77e4554f..67233e9b4a5 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -349,7 +349,9 @@ fn async_main() -> impl Future + Send + 'static { .expect("invalid --store-connection-pool-size/STORE_CONNECTION_POOL_SIZE value"); // Minimum of two connections needed for the pool in order for the Store to bootstrap - assert!(store_conn_pool_size > 1); + if store_conn_pool_size <= 1 { + panic!("--store-connection-pool-size/STORE_CONNECTION_POOL_SIZE must be > 1") + } // Set up Sentry, with release tracking and panic handling; // fall back to an empty URL, which will result in no errors being reported