Skip to content

Commit

Permalink
Clearer errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Prescod committed Apr 30, 2021
1 parent dbb19d1 commit 4f5ff9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cumulusci/tasks/bulkdata/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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}"
)

0 comments on commit 4f5ff9b

Please sign in to comment.