From 3362d7ecbb80625537fa0f74643f3dc9ac124a9d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 25 Feb 2021 09:05:18 +0200 Subject: [PATCH] vpm: make the 404 in text error more precise (till https://vpm.vlang.io/ is fixed properly) --- 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 a7acb77f18..f196e52d5d 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -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 }