dizzyd / mcdex

Minecraft Modpack Management
Apache License 2.0
74 stars 8 forks source link

Error when running mod.list before db.update #32

Closed LiaungYip closed 5 years ago

LiaungYip commented 5 years ago

mcdex does not check that the database has been downloaded before attempting to run operations on the database.

This results in errors like "no such column" when mcdex should instead report database hasn't been downloaded yet - try running mcdex db.update.


PS D:\mcdex> ./mcdex mod.list Immersive
2018/10/05 18:43:04 Query failed: no such column: slug

PS D:\mcdex> ./mcdex db.update
Database up-to-date as of 55 minutes ago (2018-10-05 17:48:20 +1000 AEST)

PS D:\mcdex> ./mcdex mod.list Immersive
immersive-cables | A spiritual successor of Immersive Integration, adding wires for Applied Energistics and Refined Storage | 735,097 downloads
immersive-craft | Add a more immersive way to handle, craft and store objects in Minecraft | 1,330,843 downloads
immersive-engineering | A retro-futuristic tech mod! | 24,217,867 downloads
...

PS D:\mcdex>```
dizzyd commented 5 years ago

Thanks @LiaungYip - I'll get this fixed tomorrow when I'm on the plane.

dizzyd commented 5 years ago

This is fixed in 0.9.5.