diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index b5a1e9b64d..9dbc507e22 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -3318,7 +3318,10 @@ fn adjust_ulimit_nofile() -> Result<()> { ); if cfg!(target_os = "macos") { - error!("On mac OS you may need to run |sudo launchctl limit maxfiles 65536 200000| first"); + error!( + "On mac OS you may need to run |sudo launchctl limit maxfiles {} {}| first", + desired_nofile, desired_nofile, + ); } return Err(BlockstoreError::UnableToSetOpenFileDescriptorLimit); }