sync: add diagnostic for tsort failure