aboutsummaryrefslogtreecommitdiff
path: root/src/extras/requests.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/requests.js')
-rw-r--r--src/extras/requests.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extras/requests.js b/src/extras/requests.js
index c609da3..6066e90 100644
--- a/src/extras/requests.js
+++ b/src/extras/requests.js
@@ -58,6 +58,11 @@ async function getLatestNsVersion() {
_saveCache(cache);
resolve( cache[NORTHSTAR_LATEST_RELEASE_KEY]["body"]["tag_name"] );
});
+ })
+
+ .on('error', () => {
+ console.error('Failed to get latest Northstar version.');
+ resolve( false );
});
}
});