better error message when can't resolve dependency