fix: franciser erreur de membre non trouvé·e
This commit is contained in:
parent
8af11615dd
commit
64ddfa96d6
1 changed files with 4 additions and 0 deletions
4
db.go
4
db.go
|
@ -5,6 +5,7 @@ import (
|
|||
_ "embed"
|
||||
"fmt"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
|
@ -297,6 +298,9 @@ LIMIT
|
|||
&membre.ProgrammeID,
|
||||
&membre.ProgrammeName,
|
||||
); err != nil {
|
||||
if err == pgx.ErrNoRows {
|
||||
err = fmt.Errorf("Numéro étudiant valide mais aucun·e membre trouvé·e")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue