Version 7 #53

Merged
vlbeaudoin merged 33 commits from rewrite/v7 into main 2024-09-03 11:17:26 -04:00
Showing only changes of commit 64ddfa96d6 - Show all commits

4
db.go
View file

@ -5,6 +5,7 @@ import (
_ "embed" _ "embed"
"fmt" "fmt"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool" "github.com/jackc/pgx/v5/pgxpool"
) )
@ -297,6 +298,9 @@ LIMIT
&membre.ProgrammeID, &membre.ProgrammeID,
&membre.ProgrammeName, &membre.ProgrammeName,
); err != nil { ); err != nil {
if err == pgx.ErrNoRows {
err = fmt.Errorf("Numéro étudiant valide mais aucun·e membre trouvé·e")
}
return return
} }