Expect defailed error message from the server when rejecting a move
authorCarl Worth <cworth@cworth.org>
Wed, 3 Jun 2020 22:21:36 +0000 (15:21 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 3 Jun 2020 22:21:36 +0000 (15:21 -0700)
commit9c92603bbe96c1bb54db5247ba73e7ea447845c1
tree80544d7a3d71ff15fc5acdbfc5e687988334fe2c
parentf857ec2e884b1f03257fe84ececb673a36ab9ca7
Expect defailed error message from the server when rejecting a move

The server was recently augmented to not simply say 'false' for an
illegal move, but to instead say something like:

{"legal": false, "message": "Square already occupied"}

So we plumb the server-provided message out to the user in the case of
any illegal move.
tictactoe/tictactoe.jsx