Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Fix missleading reservationId parameter error #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions wb.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ function getReservationId(options) {
function getAssertReservationId(options) {
var reservationId = getReservationId(options);
if (!reservationId) {
console.error('Parameter "-i,--reservationId" or environment variable WB_RESERVATION missing. Exiting.');
console.error('Reservation Id parameter "-i,--Id" or environment variable WB_RESERVATION missing. Exiting.');
process.exit(1);
}
return reservationId;
Expand Down Expand Up @@ -625,12 +625,6 @@ function executeFlash(options) {
var reservationId = getAssertReservationId(options);

var jsonConfig;

if (!reservationId) {
console.error('Parameter "reservationId" missing. Exiting.');
process.exit(1);
}

var createConfig;

if (options.file) {
Expand Down