Fix some comments

Signed-off-by: Martina Iglesias Fernandez <martina@roadie.io>
This commit is contained in:
Martina Iglesias Fernandez
2021-03-29 10:14:52 +02:00
parent 18f4301d3b
commit 6a9b9d0f7c
4 changed files with 9 additions and 13 deletions
@@ -22,10 +22,9 @@ import {
UrlReader,
} from './types';
import getRawBody from 'raw-body';
import {
GOOGLE_GCS_HOST,
readGoogleGcsIntegrationConfig,
} from '@backstage/integration';
import { readGoogleGcsIntegrationConfig } from '@backstage/integration';
const GOOGLE_GCS_HOST = 'storage.cloud.google.com';
const parseURL = (
url: string,
@@ -81,7 +80,7 @@ export class GoogleGcsUrlReader implements UrlReader {
this.storage.bucket(bucket).file(key).createReadStream(),
);
} catch (error) {
throw new Error(`unable to read gcs file from ${url}`);
throw new Error(`unable to read gcs file from ${url}, ${error}`);
}
}
+1 -1
View File
@@ -154,7 +154,7 @@ export interface Config {
googleGcs?: {
/**
* Service account email used to authenticate requests.
* @visibility secret
* @visibility backend
*/
clientEmail?: string;
/**
@@ -16,4 +16,3 @@
export { readGoogleGcsIntegrationConfig } from './config';
export type { GoogleGcsIntegrationConfig } from './config';
export const GOOGLE_GCS_HOST = 'storage.cloud.google.com';