add dependency chain to error message