Raise an error message if a named resource can't be found