Skip to content

Commit

Permalink
Improve error msgs (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly authored Feb 15, 2024
1 parent bc2c41c commit 0476014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmu/sumo/uploader/_sumofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def upload_to_sumo(self, sumo_parent_id, sumo_connection):
pass
except httpx.HTTPStatusError as err:
logger.warn(
f"Metadata upload statuserror exception {err} {type(err)}"
f"Metadata upload statuserror exception {err} {type(err)} {err.response.text}"
)
result.update(
{
Expand Down Expand Up @@ -270,7 +270,7 @@ def upload_to_sumo(self, sumo_parent_id, sumo_connection):
)
pass
except httpx.HTTPStatusError as err:
logger.warn(f"Blob upload failed on status {err} {type(err)}")
logger.warn(f"Blob upload failed on status {err} {type(err)} {err.response.text}")
upload_response.update(
{
"status": "failed",
Expand Down

0 comments on commit 0476014

Please sign in to comment.