Return a proper error if variable is not available