-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚑 fix: handle error when upscaling image
This commit handles errors that may occur when upscaling an image using the Pixelcut API. Specifically, it: - Adds a try/catch block to the image upscaling request. - Parses the error response from the API and displays the error code and message to the user. - Resets the reaction to "failed" if the upscaling request fails.
- Loading branch information
Showing
1 changed file
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters