Add a little unit context when DAG generation fails.