Version 7 #53
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue