Verified Commit 804863e8 authored by Aral Balkan's avatar Aral Balkan
Browse files

Improve build script error message

parent 0c92ff86
......@@ -69,7 +69,7 @@ if (commandLineOptions.deploy) {
// (Deployments are only allowed from the master branch.)
const gitBranch = childProcess.execSync('git branch --show-current', {env: process.env, cwd: mainSourceDirectory})
if (gitBranch !== 'master') {
console.log('❌ Error: Refusing to deploy non-master branch.\n')
console.log(`❌ Error: Refusing to deploy non-master (${gitBranch}) branch.\n`)
process.exit(1)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment