Skip to content

Commit

Permalink
Merge pull request #9858 from RocketChat/silence-the-unwanted-error
Browse files Browse the repository at this point in the history
[FIX] Silence the update check error message
  • Loading branch information
sampaiodiego committed Feb 23, 2018
2 parents 2ef6942 + 6899063 commit caab399
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* global MongoInternals */
import os from 'os';
import { HTTP } from 'meteor/http';
import logger from '../logger';
// import checkUpdate from '../checkUpdate';

export default () => {
Expand All @@ -28,16 +27,11 @@ export default () => {
params: data
});

// const result = {
// data: {
// ...checkUpdate
// }
// };

return result.data;
} catch (error) {
// console.log(error);
logger.error('Failed to get version updates', error);
// There's no need to log this error
// as it's pointless and the user
// can't do anything about it anyways

return {
versions: [],
Expand Down

0 comments on commit caab399

Please sign in to comment.