We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38476e6 commit 3d5a625Copy full SHA for 3d5a625
xtask/src/dataset.rs
@@ -1,4 +1,4 @@
1
-use anyhow::anyhow;
+use anyhow::{Context as _, anyhow};
2
use bytes::Bytes;
3
use clap::Parser;
4
use postgresql_commands::{CommandBuilder, CommandExecutor, pg_dump::PgDumpBuilder};
@@ -191,7 +191,10 @@ impl GenerateDump {
191
IngestorService::new(Graph::new(runner.db.clone()), runner.storage.clone(), None);
192
for path in config.paths {
193
log::info!("Ingesting: {}", path.display());
194
- let path = wd.join(path).canonicalize()?;
+ let path = wd.join(path);
195
+ let path = path
196
+ .canonicalize()
197
+ .with_context(|| format!("failed to canonicalize '{}'", path.display()))?;
198
log::info!(" Resolved: {}", path.display());
199
200
let mut files = vec![];
0 commit comments