From 1c8d2c21b5c3e2723a9bad2e8ec2ac7bfb7e270a Mon Sep 17 00:00:00 2001 From: Don Alfons Nisnoni Date: Sat, 9 May 2020 04:50:36 +0800 Subject: [PATCH] vpm: fix 404 error message --- cmd/tools/vpm.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vpm.v b/cmd/tools/vpm.v index 8f11153e74..62d7a42859 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -449,7 +449,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.contains('404') { errors << 'Skipping module "$name", since $server_url reported that "$name" does not exist.' continue }