Skip to content

Commit 3d5a625

Browse files
committed
chore: provide better error context
1 parent 38476e6 commit 3d5a625

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xtask/src/dataset.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::anyhow;
1+
use anyhow::{Context as _, anyhow};
22
use bytes::Bytes;
33
use clap::Parser;
44
use postgresql_commands::{CommandBuilder, CommandExecutor, pg_dump::PgDumpBuilder};
@@ -191,7 +191,10 @@ impl GenerateDump {
191191
IngestorService::new(Graph::new(runner.db.clone()), runner.storage.clone(), None);
192192
for path in config.paths {
193193
log::info!("Ingesting: {}", path.display());
194-
let path = wd.join(path).canonicalize()?;
194+
let path = wd.join(path);
195+
let path = path
196+
.canonicalize()
197+
.with_context(|| format!("failed to canonicalize '{}'", path.display()))?;
195198
log::info!(" Resolved: {}", path.display());
196199

197200
let mut files = vec![];

0 commit comments

Comments
 (0)