Improve error message on missing net.