diff --git a/src/graphql/resolvers.ts b/src/graphql/resolvers.ts index a08c806..c6459e0 100644 --- a/src/graphql/resolvers.ts +++ b/src/graphql/resolvers.ts @@ -498,7 +498,7 @@ export function resolver(req: any, res: any): any { if (!nameExists) { return models.Activity.create({name, description, points}); } else { - return new GraphQLError(`An activity with the name '${name}'`); + return new GraphQLError(`An activity with the name '${name}' already exists.`); } } else { res.status(status.FORBIDDEN);