Skip to content

Commit

Permalink
[push] Suggest other command if dp.json is missing #datopian/datahub-…
Browse files Browse the repository at this point in the history
  • Loading branch information
AcckiyGerman committed Feb 12, 2018
1 parent 1b7bd7f commit 670aabd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ class Dataset {
if (fs.existsSync(this.dataPackageJsonPath)) {
this._descriptor = JSON.parse(fs.readFileSync(this.dataPackageJsonPath))
} else {
throw new Error('No datapackage.json at destination.')
throw new Error("No datapackage.json at destination.\n" +
"\tRun 'data init <path>' to create a datapackage.\n" +
"\tRun 'data help push' for more info.")
}
// Now get README from local disk if exists
if (fs.existsSync(readmePath)) {
Expand Down

0 comments on commit 670aabd

Please sign in to comment.