Skip to content

Commit effc112

Browse files
Merge pull request #60 from StreetSupport/fix/handle_error
Handle Blob error
2 parents 12760e4 + 844c3b6 commit effc112

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/middleware/uploadMiddleware.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ if (AZURE_STORAGE_CONNECTION_STRING) {
2525
console.log('Azure Blob Storage configured successfully');
2626
} catch (error) {
2727
console.error('Failed to initialize Azure Blob Storage:', error);
28-
console.error('Falling back to local storage');
2928
}
3029
} else {
31-
console.error('Azure Storage connection string not provided, using local storage');
30+
throw Error("Azure Storage connection string not provided");
3231
}
3332

3433
// Multer configuration for memory storage

0 commit comments

Comments
 (0)