~sircmpwn/todo.sr.ht#271: 
Confusing error msg when tracker id does not exist

if I try to create an issue with an non-existing tracker id, I receive a confusing reply.

Payload:

mutation CreateTicket {
	submitTicket(trackerId:12345678,
		input: {
			subject: "This the title",
			body: "This is the body"
		}){
		id,
		created
	}
}

Reply:

{
	"errors": [
		{
			"message": "must not be null",
			"path": [
				"submitTicket"
			]
		}
	],
	"data": null
}

Expected: A message about the tracker ID not existing.

Mentioned in: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C87fsje6tys.fsf%40city17.xyz%3E

Status
REPORTED
Submitter
~jman
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.