luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

Better error message when package name is malformed #182

Closed squeek502 closed 8 years ago

squeek502 commented 8 years ago

See luvit/luvit#882

Will now give the following error instead:

fail: [string "bundle:libs/core.lua"]:133: Malformed package metadata. Package name must be of the format 'author/package'.

Note that malformed (or missing) version errors are already handled by semver.normalize within pkg.normalize.

creationix commented 8 years ago

Thanks, looks great, just one nit about logic style.

squeek502 commented 8 years ago

Made that change.