Improved error message when namespace not found