Skip to content

Commit

Permalink
[cli] Output a meaningful error message when the user login session i…
Browse files Browse the repository at this point in the history
…s expired (#1522)
  • Loading branch information
skogsmaskin committed Oct 1, 2019
1 parent eb4898a commit 7d7a268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/cli/src/util/clientWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const authErrors = () => ({
cfg.delete('authType')
cfg.delete('authToken')

// @todo Trigger re-authentication?
return err
// @todo trigger reauthentication automatically?
return new Error('You\'ve been logged out. Log back in again with "sanity login"')
}
})

Expand Down

0 comments on commit 7d7a268

Please sign in to comment.