check_add_command(): Use WIMLIB_ERR_UNSUPPORTED when appropriate
authorEric Biggers <ebiggers3@gmail.com>
Sun, 12 May 2013 05:27:16 +0000 (00:27 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 12 May 2013 05:27:16 +0000 (00:27 -0500)
src/update_image.c

index 3d12745..650dfbb 100644 (file)
@@ -488,11 +488,11 @@ check_add_command(struct wimlib_update_command *cmd,
        }
        if (add_flags & WIMLIB_ADD_FLAG_UNIX_DATA) {
                ERROR("Capturing UNIX-specific data is not supported on Windows");
-               return WIMLIB_ERR_INVALID_PARAM;
+               return WIMLIB_ERR_UNSUPPORTED;
        }
        if (add_flags & WIMLIB_ADD_FLAG_DEREFERENCE) {
                ERROR("Dereferencing symbolic links is not supported on Windows");
-               return WIMLIB_ERR_INVALID_PARAM;
+               return WIMLIB_ERR_UNSUPPORTED;
        }
 #endif