mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Fix unhandled promise rejection when ~/.balena is not accessible
Resolves: #2096 Change-type: patch
This commit is contained in:
parent
ee79c87723
commit
65f053dd6e
@ -84,7 +84,7 @@ export async function trackCommand(commandSignature: string) {
|
||||
try {
|
||||
const balena = getBalenaSdk();
|
||||
const $username = await balena.auth.whoami();
|
||||
storage.set('cachedUsername', {
|
||||
await storage.set('cachedUsername', {
|
||||
token,
|
||||
username: $username,
|
||||
} as CachedUsername);
|
||||
|
Loading…
Reference in New Issue
Block a user