()
| 209 | } |
| 210 | |
| 211 | async function getServiceInfo(): Promise<ServiceInfo> { |
| 212 | return pickOneService( |
| 213 | projectId, |
| 214 | options.config, |
| 215 | serviceId || undefined, |
| 216 | locationId || undefined, |
| 217 | ).catch((e: unknown) => { |
| 218 | if (!(e instanceof FirebaseError)) { |
| 219 | return Promise.reject(e); |
| 220 | } |
| 221 | if (!serviceId) { |
| 222 | e = new FirebaseError( |
| 223 | e.message + |
| 224 | `\nHint: Try specifying the ${clc.yellow("--service <serviceId>")} option.`, |
| 225 | { ...e, original: e }, |
| 226 | ); |
| 227 | } |
| 228 | return Promise.reject(e); |
| 229 | }); |
| 230 | } |
| 231 | |
| 232 | async function pickConnectorDir(): Promise<string> { |
| 233 | const serviceInfo = await getServiceInfo(); |
no test coverage detected
searching dependent graphs…