Skip to content

Commit

Permalink
added additonal logs for image uplaod failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinovpankaj committed Mar 14, 2024
1 parent 0095f5d commit 34fb077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/images-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ router.route('/upload')
return;
}
var result = await uploadBlob.uploadFile(newcontainerName, filetoUpload.originalname, filetoUpload.path, uploadOptions);
console.log(`Trying to create and upload in ${containerName}: ${result}`);
var response = JSON.parse(result);
if (response.error) {
errResponse = new ErrorResponse(500, 'Internal server error', result.error);
Expand Down

0 comments on commit 34fb077

Please sign in to comment.