Handing errors in dependencies