Skip to content

Commit 1771151

Browse files
committed
Error if $BUNDLE_GEMFILE is set but does not exist
1 parent f5db46e commit 1771151

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ function detectGemfiles() {
8080
const gemfilePath = process.env['BUNDLE_GEMFILE'] || 'Gemfile'
8181
if (fs.existsSync(gemfilePath)) {
8282
return [gemfilePath, `${gemfilePath}.lock`]
83+
} else if (process.env['BUNDLE_GEMFILE']) {
84+
throw new Error(`$BUNDLE_GEMFILE is set to ${gemfilePath} but does not exist`)
8385
}
8486

8587
if (fs.existsSync("gems.rb")) {

0 commit comments

Comments
 (0)