log an error for missing resources

This commit is contained in:
Enno Rehling 2012-05-12 15:51:28 -07:00
parent 08fc39cca7
commit cf6a52bde7
1 changed files with 3 additions and 1 deletions

View File

@ -354,7 +354,9 @@ resource_type *rt_find(const char *name)
if (rtype->hashkey == hash && !strcmp(rtype->_name[0], name))
break;
}
if (!rtype) {
log_error(("rt_find: unknown resource '%s'\n", name));
}
return rtype;
}