From 8e04f0455e04771c8f8c5f5d704ab6e70c3da956 Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Tue, 15 Nov 2022 15:01:36 +0200 Subject: [PATCH] add a bunch of .context calls --- pageserver/src/tenant.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index 197f51e90b..b9e1c8152a 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -430,7 +430,8 @@ impl Tenant { // in remote storage. timeline .reconcile_with_remote(metadata, index_part, first_save) - .await? + .await + .context("failed to reconcile with remote")? } // Finally launch walreceiver @@ -677,7 +678,9 @@ impl Tenant { self.tenant_id ) })? { - let entry = entry?; + let entry = entry.with_context(|| { + format!("cannot read timeline dir entry for {}", self.tenant_id) + })?; let timeline_dir = entry.path(); if crate::is_temporary(&timeline_dir) {