Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Improve update error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Sep 20, 2022
1 parent f4f239a commit 069acff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logic/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function getLatestRelease() {
// TODO: Send realtime notification to ui
}
} catch (error) {
console.log('Error fetching latest release');
console.log(`Error fetching latest release: ${error.message}`);
}
await delay(ONE_HOUR);
}
Expand Down Expand Up @@ -162,6 +162,7 @@ async function getAvailableUpdate() {
return "Your Umbrel is up-to-date";
}
catch (error) {
console.log(`Error getting available update: ${error.message}`);
throw new NodeError('Unable to check for update');
}
};
Expand Down

0 comments on commit 069acff

Please sign in to comment.