This is a remnant from the days when we had graphql as a subcommand within the dgraph binary. We should remove it now, sending a PR to fix this.
I think we could also a bit better here and report better error messages. Alter can tell us the type of error (temporary or not) and report the error based on that. Could you add that as an issue for us to look at @abhimanyusinghgaur?