summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chess-sound.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/chess-sound.el b/chess-sound.el
index cb6c95c..ed1ce53 100644
--- a/chess-sound.el
+++ b/chess-sound.el
@@ -42,9 +42,10 @@
:group 'chess-sound)
(defsubst chess-sound (file)
- (funcall chess-sound-play-function
- (expand-file-name (concat file ".wav")
- chess-sound-directory)))
+ (ignore-errors
+ (funcall chess-sound-play-function
+ (expand-file-name (concat file ".wav")
+ chess-sound-directory))))
(defsubst chess-sound-play (file)
(apply 'call-process chess-sound-program