Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Unhandled Promise Rejections #217

Merged
merged 4 commits into from
Jul 1, 2020

Conversation

andreban
Copy link
Member

@andreban andreban commented Jun 30, 2020

  • Added missing await calls to fix Unhandled Promis Rejections
    when renaming the old config name to the new config name.
  • Defaults CLI to the help command
  • Uses .bubblewrap as the name for the config folder, in case we need to store other files in the future.

@chenlevy24 FYI

- Added missing `await` calls to fix Unhandled Promis Rejections
  when renaming the old config name to the new config name.
- Defaults CLI to the `help` command
@andreban andreban requested a review from PEConn June 30, 2020 20:21
@andreban andreban added the bug Something isn't working label Jun 30, 2020
@andreban andreban removed the request for review from PEConn June 30, 2020 20:30
@andreban andreban marked this pull request as draft June 30, 2020 20:31
@andreban andreban marked this pull request as ready for review June 30, 2020 20:51
@andreban andreban requested a review from PEConn June 30, 2020 20:51
@@ -22,7 +22,7 @@ import {loadOrCreateConfig} from '../lib/config';
import * as mock from 'mock-fs';
import * as inquirer from 'inquirer';

const DEFAULT_CONFIG_FOLDER = join(homedir(), '.bubblewrap-config');
const DEFAULT_CONFIG_FOLDER = join(homedir(), '.bubblewrap');
const DEFAULT_CONFIG_NAME = 'bubblewrap-config.json';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just change the file name to ~/.bubblewrap/config.json, ~/.bubblewrap/bubblewrap-config.json is a bit tautological.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. Renamed.

- Renames `bubblewrap-config.json` to `config.json`, as the config
  already sits in the `~/.bubblewrap` directory.
@andreban andreban requested a review from PEConn July 1, 2020 11:14
@andreban andreban merged commit 10a6666 into GoogleChromeLabs:master Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants