From 4f5ff9bd3ea5f34e0cbad1cdc4f34c77368a2b21 Mon Sep 17 00:00:00 2001 From: Paul Prescod Date: Fri, 30 Apr 2021 12:33:28 -0700 Subject: [PATCH] Clearer errors. --- cumulusci/tasks/bulkdata/load.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cumulusci/tasks/bulkdata/load.py b/cumulusci/tasks/bulkdata/load.py index 871d3785f6..ff1d2524fc 100644 --- a/cumulusci/tasks/bulkdata/load.py +++ b/cumulusci/tasks/bulkdata/load.py @@ -666,9 +666,9 @@ def _set_viewed(self): ) for record in custom_tab_objects["records"]: object_names.add(record["SobjectName"]) - except Exception: + except Exception as e: self.logger.warning( - "Cannot get the list of custom tabs to set recently viewed status on them." + f"Cannot get the list of custom tabs to set recently viewed status on them. Error: {e}" ) with get_org_schema(self.sf, self.org_config) as org_schema: for mapped_item in sorted(object_names): @@ -677,7 +677,7 @@ def _set_viewed(self): self.sf.query_all( f"SELECT Id FROM {mapped_item} ORDER BY CreatedDate DESC LIMIT 1000 FOR VIEW" ) - except Exception: + except Exception as e: self.logger.warning( - f"Cannot set recently viewed status for {mapped_item}" + f"Cannot set recently viewed status for {mapped_item}. Error: {e}" )