Skip to content

Commit 23ad51c

Browse files
committed
provide path in the error message
1 parent 57950dc commit 23ad51c

File tree

1 file changed

+3
-1
lines changed
  • tools/internal/localnet-orchestrator/src

1 file changed

+3
-1
lines changed

tools/internal/localnet-orchestrator/src/helpers.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ pub(crate) fn monorepo_root_path(arg: Option<PathBuf>) -> anyhow::Result<PathBuf
223223
.next_back()
224224
.context("attempted to execute orchestrator from the root of the filesystem")?;
225225
if dir.as_os_str().to_string_lossy() != "nym" {
226-
bail!("localnet-orchestrator must be executed from the root of the nym repo!")
226+
bail!(
227+
"localnet-orchestrator must be executed from the root of the nym repo! the path is {maybe_path_canon:?}"
228+
);
227229
}
228230

229231
Ok(maybe_path)

0 commit comments

Comments
 (0)