diff options
| author | Mario Lang <mlang@delysid.org> | 2004-01-19 16:50:32 +0000 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2004-01-19 16:50:32 +0000 |
| commit | c2bca7468a435177c314769b823d0dacf6817e74 (patch) | |
| tree | cd2e2a182b5cc3a2b52cfab54ee69eb25f6327ad | |
| parent | ded15b4bece02f971ee12415eecb5024adf18bb8 (diff) | |
minor change
| -rw-r--r-- | chess-epd.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chess-epd.el b/chess-epd.el index f688ce8..5016117 100644 --- a/chess-epd.el +++ b/chess-epd.el @@ -121,9 +121,11 @@ and advance point after the correctly parsed position." ((or (eq opcode 'pv) (eq opcode 'sv)) ; predicted/supplied variation (let ((var (chess-var-create pos))) (mapc (lambda (ply) - (chess-var-move var - (chess-ply-from-string - (chess-var-pos var) ply))) + (let ((changes (chess-ply-from-string + (chess-var-pos var) ply))) + (if changes + (chess-var-move var changes) + (error "Unable to convert ply '%s'" ply)))) (split-string val " ")) var)) (t val)))) |
