vpm: make the 404 in text error more precise (till https://vpm.vlang.io/ is fixed properly)

pull/8968/head
Delyan Angelov 2021-02-25 09:05:18 +02:00
parent 7e27920cf7
commit 3362d7ecbb
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ fn get_module_meta_info(name string) ?Mod {
errors << 'Error details: $err'
continue
}
if r.status_code == 404 {
if r.status_code == 404 || r.text.trim_space() == '404' {
errors << 'Skipping module "$name", since $server_url reported that "$name" does not exist.'
continue
}