more descriptive wait message #33

Merged
coolaj86 merged 1 commits from clarify-waiting into master 2019-05-18 19:39:45 +00:00
Owner

Changed from waiting... to waiting for you to check your email

Changed from `waiting...` to `waiting for you to check your email`
ryanburnette approved these changes 2019-05-18 19:29:18 +00:00
ryanburnette left a comment
Collaborator

lgtm

lgtm
Ghost reviewed 2019-05-18 19:30:56 +00:00
@ -540,3 +540,3 @@
return;
}
console.info("waiting...");
console.info(TPLS.remote.waiting.replace(/{email}/, state.config.email));
First-time contributor

Have we verified that this code has been run? Does TPLS ever change state/does TPLS.remote.waiting ever become unavailable if the state changes?

Have we verified that this code has been run? Does TPLS ever change state/does `TPLS.remote.waiting` ever become unavailable if the state changes?
First-time contributor

Same with state.config.email ??? What about a decent fallback? What if the user doesn't enter an email??

Same with `state.config.email` ??? What about a decent fallback? What if the user doesn't enter an email??
Author
Owner
TPLS is loaded only once, right at the start and it's values are static. https://git.coolaj86.com/coolaj86/telebit.js/src/branch/master/lib/en-us.toml https://git.coolaj86.com/coolaj86/telebit.js/src/branch/master/bin/telebit-remote.js#L15
First-time contributor

Still not convinced that TPLS is assured as available, same with state.config. TPLS depends on valid loading of toml file. Still, am confident that error would throw before getting to this state/flow. Even if state.config.email is null, replace op would work, but would throw IF state.config is null.

Still not convinced that TPLS is assured as available, same with state.config. TPLS depends on valid loading of `toml` file. Still, am confident that error would throw before getting to this state/flow. Even if `state.config.email` is null, `replace` op would work, but would throw IF `state.config` is `null`.
Author
Owner

The user must enter an email. Otherwise it'll loop back.

The user must enter an email. Otherwise it'll loop back.
First-time contributor

But approving nonetheless as it is hard to verify the above for now. LGTM.

But approving nonetheless as it is hard to verify the above for now. LGTM.
Ghost approved these changes 2019-05-18 19:35:19 +00:00
coolaj86 closed this pull request 2019-05-18 19:39:45 +00:00
Sign in to join this conversation.
No reviewers
No Label
feature
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/telebit.js#33
No description provided.