attic-labs / noms

The versioned, forkable, syncable database
Apache License 2.0
7.44k stars 266 forks source link

Poor error on missing '::' #3832

Open lak opened 5 years ago

lak commented 5 years ago

I think the '::' is confusing regardless, but this error is wrong when it's missing:

luke@lak-5kimac15-work $ noms blob put testfile.mp3 mp3
Could not create dataset: Missing :: after database in mp3

The way to fix it is put the error before the database name:

luke@lak-5kimac15-work $ noms blob put testfile.mp3 ::mp3
Could not create dataset: Empty spec

(Yes, I know that's failing; but it's a different error now.)