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

Commit

Permalink
Check for 'core id' error (TFS2013 RTM+) (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Young authored May 18, 2017
1 parent 3c620a3 commit 0c61afc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/extensionmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ export class ExtensionManager implements Disposable {
}
} catch (err) {
//TODO: With TFVC, creating a RepositoryInfo can throw (can't get project collection, can't get team project, etc.)
// We get a 404 on-prem if we aren't Update 2 or later
if (this._serverContext.RepoInfo.IsTeamFoundationServer === true && err.statusCode === 404) {
// We get a 404 on-prem if we aren't TFS 2015 Update 2 or later and 'core id' error with TFS 2013 RTM (and likely later)
if (this._serverContext.RepoInfo.IsTeamFoundationServer === true &&
(err.statusCode === 404 || (err.message && err.message.indexOf("Failed to find api location for area: core id:") === 0))) {
this.setErrorStatus(Strings.UnsupportedServerVersion, undefined, false);
Logger.LogError(Strings.UnsupportedServerVersion);
Telemetry.SendEvent(TelemetryEvents.UnsupportedServerVersion);
Expand Down

0 comments on commit 0c61afc

Please sign in to comment.