Give more helpful error messages for unit errors detected during `before_run`