You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
578 B
12 lines
578 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ensureLocationSet = void 0;
|
|
const error_1 = require("./error");
|
|
function ensureLocationSet(location, feature) {
|
|
if (!location) {
|
|
throw new error_1.FirebaseError(`Cloud resource location is not set for this project but the operation ` +
|
|
`you are attempting to perform in ${feature} requires it. ` +
|
|
`Please see this documentation for more details: https://firebase.google.com/docs/projects/locations`);
|
|
}
|
|
}
|
|
exports.ensureLocationSet = ensureLocationSet;
|