{"record":{"id":"c5e0fe66441576ff","repo":"spacedriveapp/spacedrive","slug":"invalid-action-supported-share-local-join","errorCode":null,"errorMessage":"Invalid action '{}'. Supported: share-local, join-remote, merge","messagePattern":"Invalid action '(.+?)'\\. Supported: share-local, join-remote, merge","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"apps/cli/src/domains/library/args.rs","lineNumber":202,"sourceCode":"\t\t\t\t\t\tremote_library_name: name,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\"merge\" => {\n\t\t\t\t\tlet local_library_id = local_library;\n\t\t\t\t\tlet remote_library_id = self.remote_library.ok_or_else(|| {\n\t\t\t\t\t\tanyhow::anyhow!(\"--remote-library is required for merge action\")\n\t\t\t\t\t})?;\n\t\t\t\t\tlet name = self\n\t\t\t\t\t\t.name\n\t\t\t\t\t\t.clone()\n\t\t\t\t\t\t.ok_or_else(|| anyhow::anyhow!(\"--name is required for merge action\"))?;\n\t\t\t\t\tLibrarySyncAction::MergeLibraries {\n\t\t\t\t\t\tlocal_library_id,\n\t\t\t\t\t\tremote_library_id,\n\t\t\t\t\t\tmerged_name: name,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_ => anyhow::bail!(\n\t\t\t\t\t\"Invalid action '{}'. Supported: share-local, join-remote, merge\",\n\t\t\t\t\taction_str\n\t\t\t\t),\n\t\t\t};\n\n\t\tOk(LibrarySyncSetupInput {\n\t\t\tlocal_device_id,\n\t\t\tremote_device_id: remote_device,\n\t\t\tlocal_library_id: local_library,\n\t\t\tremote_library_id: self.remote_library,\n\t\t\taction,\n\t\t\tleader_device_id,\n\t\t})\n\t}\n}\n","sourceCodeStart":184,"sourceCodeEnd":218,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/apps/cli/src/domains/library/args.rs#L184-L218","documentation":"Error \"Invalid action '{}'. Supported: share-local, join-remote, merge\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at apps/cli/src/domains/library/args.rs:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}