diff --git a/admin/sync/exercice_hints.go b/admin/sync/exercice_hints.go index 9eb8c871..d485e7fb 100644 --- a/admin/sync/exercice_hints.go +++ b/admin/sync/exercice_hints.go @@ -127,7 +127,9 @@ func SyncExerciceHints(i Importer, exercice fic.Exercice, flagsBindings map[int6 // Handle hints dependencies on flags for _, nf := range hint.FlagsDeps { if f, ok := flagsBindings[nf]; ok { - h.AddDepend(f) + if herr := h.AddDepend(f); herr != nil { + errs = append(errs, fmt.Sprintf("%q: error hint #%d dependency to flag #%d: %s", path.Base(exercice.Path), hint.Line, nf, herr)) + } } else { errs = append(errs, fmt.Sprintf("%q: error hint #%d dependency to flag #%d: Unexistant flag", path.Base(exercice.Path), hint.Line, nf)) }