error-checking.js
// and column of incorrect input.
and column of incorrect input.
and column of incorrect input .
function workshopInputChecker(name, capacity, location, row) {
    row++;
    if (typeof name !== "string") {
        throw new Error(
            "Invalid workshop at row " +
                row +
                " column " +
                COLUMN_WORKSHOP_NAME +
                " in workshop sheet"
        );
    }
    if (typeof capacity !== "number" || isNaN(capacity)) {
        throw new Error(
            "Invalid workshop capacity at row " +
                row +
                " column " +
                COLUMN_WORKSHOP_CAPACITY +
                " in workshop sheet"
        );
    }
}
function workshopInputChecker ( name , capacity , location , row ) { row ++ ; if ( typeof name !== "string" ) { throw new Error ( "Invalid workshop at row " + row + " column " + COLUMN_WORKSHOP_NAME + " in workshop sheet" ) ; } if ( typeof capacity !== "number" || isNaN ( capacity ) ) { throw new Error ( "Invalid workshop capacity at row " + row + " column " + COLUMN_WORKSHOP_CAPACITY + " in workshop sheet" ) ; } }
and column of incorrect input.
and column of incorrect input .
// Increment the row number to make it match the sheet's row numbers