Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

[Push] Suggest other command if dp.json is missing #63

Closed
zelima opened this issue Feb 1, 2018 · 3 comments
Closed

[Push] Suggest other command if dp.json is missing #63

zelima opened this issue Feb 1, 2018 · 3 comments

Comments

@zelima
Copy link
Collaborator

zelima commented Feb 1, 2018

data push will fail if dp.json is missing with following error

ENOENT: no such file or directory, open '/.../datapackage.json'

How to reproduce

  • run data push in directory without datapackage.json

Expected behavior

Should suggest help or init

datapackage.json is missing

Type data init to create datapackage.json
Type data help push  for more info
@AcckiyGerman
Copy link
Contributor

fixed: frictionlessdata/frictionless-js#29 waiting for a review

@AcckiyGerman
Copy link
Contributor

fix moved from data.js to data-cli to keep the data.js clean for using in non-datahub context.
Waiting for a review...

AcckiyGerman added a commit to datopian/data-cli that referenced this issue Feb 13, 2018
@AcckiyGerman
Copy link
Contributor

AcckiyGerman commented Feb 13, 2018

FIXED: datopian/data-cli#275

$ data push
Error: No datapackage.json at destination.
> Run 'data init' to create a datapackage.
> Run 'data help push' for more info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants