dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

`dub fetch` for non-existent package name should have better error message #2679

Closed ntrel closed 9 months ago

ntrel commented 1 year ago

System information

Bug Description

How to reproduce?

nick@nmt-pc:~/git/english$ dub fetch libssl-dev 
             Getting a release version failed: (1): Error: Got JSON of type null_, expected object.
             Retry with ~master...
Error (1): Error: Got JSON of type null_, expected object.

Expected Behavior

The code should show an error like:

Error: No package `libssl-dev` found

Logs

Geod24 commented 9 months ago

Fix: https://github.com/dlang/dub/pull/2763