Skip to content

Commit

Permalink
updated error handling at CreateCustomImageChange
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Jan 30, 2024
1 parent d63feb4 commit 4c6294b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/syft/src/syft/service/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ def _run(
tag=self.tag,
registry_uid=self.registry_uid,
)
return Ok(build_result)
if isinstance(build_result, SyftError):
return Err(build_result)
else:
return Ok(build_result)

except Exception as e:
return Err(SyftError(message=f"Failed to create/build image: {e}"))
Expand Down

0 comments on commit 4c6294b

Please sign in to comment.