sync: fix message
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 23:45:00 +0000 (00:45 +0100)
committerPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 23:45:00 +0000 (00:45 +0100)
admin/sync/exercice_keys.go

index a5a3bae..b422933 100644 (file)
@@ -119,7 +119,7 @@ func SyncExerciceFlags(i Importer, exercice fic.Exercice) (errs []string) {
                                // Import dependency to flag
                                for _, nf := range flag.NeedFlag {
                                        if rf, ok := kmap[nf.Id]; !ok {
-                                               errs = append(errs, fmt.Sprintf("%q: error flag #%d dependency to flag id=%s: id not defined, perhaps not available at time of processing", path.Base(exercice.Path), nline + 1, nf.Id))
+                                               errs = append(errs, fmt.Sprintf("%q: error flag #%d dependency to flag id=%d: id not defined, perhaps not available at time of processing", path.Base(exercice.Path), nline + 1, nf.Id))
                                                continue
                                        } else if err := k.AddDepend(rf); err != nil {
                                                errs = append(errs, fmt.Sprintf("%q: error flag #%d dependency to %s: %s", path.Base(exercice.Path), nline + 1, nf.Id, err))