Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add add'l error handling and logging #75

Merged
merged 1 commit into from
Jan 31, 2017
Merged

Conversation

jeffyoung
Copy link
Contributor

No description provided.

let valid: boolean = await this.validateTfvcCollectionUrl(serverUrl, this._handler);
if (!valid) {
Logger.LogDebug(`Unable to validate the Team Services TFVC repository. Collection: ${collectionName}, Url: ${serverUrl}`);
return undefined; //TODO: Handle this case (in the caller)
let error: string = `Unable to validate the Team Services TFVC repository. Collection name: '${collectionName}', Url: '${serverUrl}'`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be localized since you are not just logging it?

collectionName = "DefaultCollection";
if (!this.validateTfvcCollectionUrl(url.resolve(serverUrl, collectionName), this._handler)) {
Logger.LogDebug(`Unable to validate the TFS TFVC repository with DefaultCollection`);
return undefined; //TODO: Handle this case (in the caller)
let error: string = `Unable to validate the TFS TFVC repository with DefaultCollection`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localize string?

Copy link
Member

@jpricket jpricket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeffyoung
Copy link
Contributor Author

I'll add TODOs for localizing these.

@jeffyoung jeffyoung merged commit cdb9302 into master Jan 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants