Skip to content

Commit

Permalink
chore: add a non zero exit
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshPatel5940 committed May 23, 2024
1 parent 2ac712e commit 61e049b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/provider/minio.provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { InternalServerErrorException, Logger, Provider } from '@nestjs/common'
import * as Minio from 'minio'
import { exit } from 'process'

export const MINIO_CLIENT = 'MinioClient'

Expand Down Expand Up @@ -33,7 +34,7 @@ export const MinioProvider: Provider = {
})
} catch (error) {
logger.error('Error initializing Minio Client', error)
throw new InternalServerErrorException('Error initializing Minio Client')
exit(1)
}

const bucketName = process.env.MINIO_BUCKET_NAME
Expand Down

0 comments on commit 61e049b

Please sign in to comment.