summaryrefslogtreecommitdiff
path: root/chess-gnuchess.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-gnuchess.el')
-rw-r--r--chess-gnuchess.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-gnuchess.el b/chess-gnuchess.el
index 8f08b3a..225ee30 100644
--- a/chess-gnuchess.el
+++ b/chess-gnuchess.el
@@ -29,7 +29,7 @@
(cons "Illegal move:"
(function
(lambda ()
- (error "Illegal move"))))
+ (chess-error 'illegal-move))))
(cons "Board is wrong!"
(function
(lambda ()