Better error handing in dependency generation.