env CUE_REGISTRY=malformed!registry@url
! exec cue eval .
cmp stderr expect-stderr

-- expect-stderr --
bad value for registry: invalid registry "malformed!registry@url": invalid host name "malformed!registry@url" in registry
-- main.cue --
package main
import "example.com/e"

e.foo

-- cue.mod/module.cue --
module: "test.org"
deps: "example.com/e": v: "v0.0.1"
