Skip to content

Commit

Permalink
fix error with bad registration server response
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Lang committed Mar 30, 2016
1 parent c3da613 commit 02e341b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/embedded.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/ts/models/cockroachlabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ module Models {
m.request<VersionList>({
url: `${COCKROACHLABS_ADDR}/api/clusters/updates?uuid=${this.clusterID}&version=${nodeStatuses[0].build_info.tag}`,
config: Utils.Http.XHRConfig,
background: true,
}).then((laterVersions: VersionList) => {
if (!_.isEmpty(laterVersions.details)) {
setVersionStatusAndResolve({
Expand Down
4 changes: 4 additions & 0 deletions ui/ts/util/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/// <reference path="../../bower_components/mithriljs/mithril.d.ts" />
// Author: Matt Tracy (matt@cockroachlabs.com)

m.deferred.onerror = (e: Error) => {
console.error(e);
};

module Utils {
"use strict";

Expand Down

0 comments on commit 02e341b

Please sign in to comment.