Expose required args in inject_dependencies

I'm trying to figure out how to handle the special-casing of 'error'.