Add some somewhat decent error reporting when global lookups fail.