summaryrefslogtreecommitdiff
path: root/mm_sound_keysound.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm_sound_keysound.c')
-rw-r--r--mm_sound_keysound.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mm_sound_keysound.c b/mm_sound_keysound.c
index 0d7bf9f..55e97c1 100644
--- a/mm_sound_keysound.c
+++ b/mm_sound_keysound.c
@@ -60,14 +60,11 @@ int mm_sound_play_keysound(const char *filename, const volume_type_t vol_type)
/* Check whether file exists */
fd = open(filename, O_RDONLY);
if(fd == -1) {
- debug_error("file open failed with %s\n", strerror(errno));
+ debug_error("file open failed with [%s][%d]\n", strerror(errno), errno);
switch(errno)
{
- case EACCES:
+ case ENOENT:
return MM_ERROR_SOUND_FILE_NOT_FOUND;
- case EMFILE:
- case ENFILE:
- return MM_ERROR_SOUND_INVALID_STATE;
default:
return MM_ERROR_SOUND_INTERNAL;
}