Files
gerrit/tools/node_tools/utils/common.ts
Dmitrii Filippov fbdc89d307 Use node modules for polygerrit-ui release build
This change uses node modules to build polygerrit-ui release artifact.
Tests still use bower_components.

Change-Id: I3457931b0ff8edcb41250d1aa3518b8ea18a964e
2020-02-12 15:42:23 +00:00

26 lines
835 B
TypeScript

/**
* @license
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export function fail(message: string): never {
console.error(message);
process.exit(1);
}
export function unexpectedSwitchValue(_: never): never {
fail(`Internal error - unexpected switch value`);
}