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

Don't panic when the user isn't logged in #2012

Merged
merged 3 commits into from
Jul 26, 2021
Merged

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Jul 23, 2021

Previously, wrangler dev would panic if ~/.wrangler/config.toml didn't exist
(or had a syntax error).

Follow-up to #1966.

@jyn514 jyn514 requested a review from a team as a code owner July 23, 2021 20:41
Example warning:

```
warning: `todo` should not be present in production code
   --> src/settings/toml/manifest.rs:597:13
    |
597 |             todo!()
    |             ^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:2:9
    |
2   | #![warn(clippy::todo)] // TODO(jyn514): remove this once clippy warns about it by default
    |         ^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#todo
    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
```
It could never fail; this made it easier to tell how GlobalUser::new could fail.
Previously, `wrangler dev` would panic if `~/.wrangler/config.toml` didn't exist
(or had a syntax error).
@jyn514 jyn514 merged commit f38d42b into master Jul 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the jnelson/account-todo branch July 26, 2021 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants