Strange crafting error

While crafting a quarterstaff, I got the following error:
DEBUG : ‘leather patch’ is not a craft or has a null recipe

FUNCTION : const recipe& item::get_making() const
FILE : src/item.cpp
LINE : 8699

After I ignored the error, the quarterstaff was completed without trouble. I have all the skill and material requirements, and I’m in build 9389.