afs: Use correct error code for com_select().
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 4857f9bc60a5dece83b20a6be0ba205bd1f03c92..b92cf0f2c61fa943e95e6096510ad3fe5ec9ea07 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -482,7 +482,7 @@ static int activate_mood_or_playlist(const char *arg, int *num_admissible)
                        ret = change_current_mood(arg + 2);
                        mode = PLAY_MODE_MOOD;
                } else
-                       return -E_AFS_SYNTAX;
+                       return -ERRNO_TO_PARA_ERROR(EINVAL);
                if (ret < 0)
                        return ret;
        }