Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbradley1 committed Jun 5, 2024
1 parent 04e20da commit 3006a2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/src/api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ async def get_all_data_storage_containers():
for item in container_store_client.read_all_items():
if item["type"] == "data":
items.append(item["human_readable_name"])
except Exception:
except Exception as e:
reporter = ReporterSingleton().get_instance()
reporter.on_error("Error getting list of data containers.")
reporter.on_error("Error getting list of blob containers.\nDetails: " + str(e))
raise HTTPException(
status_code=500, detail="Error getting list of blob containers."
)
return StorageNameList(storage_name=items)


Expand Down

0 comments on commit 3006a2c

Please sign in to comment.