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

[push][s] Suggest two other commands if dp.json is missing. #275

Merged
merged 2 commits into from
Feb 13, 2018

Conversation

AcckiyGerman
Copy link
Contributor

bin/data-push.js Outdated
dataset = await Dataset.load(filePath)
} catch(err){
console.error('Error: '+err.message)
info("You can run 'data init <path>' to create a datapackage.")
Copy link
Member

Choose a reason for hiding this comment

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

As you can see here https://github.com/datahq/data-cli/blob/master/bin/data-init.js "init" command doesn't consider - you need to run it from the directory where you want to create a datapackage (so is always current working dir).

Let's change it to:

info("You can run 'data init' to create a `datapackage.json` from your project's root directory.")

@AcckiyGerman AcckiyGerman merged commit 2b2b79c into master Feb 13, 2018
@AcckiyGerman AcckiyGerman deleted the fix/help_msg_when_no_descriptor branch February 13, 2018 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants