[#42831249] Break dependOn into dependsOnChangeWithFunction and dependsOn (which handles only errors now)