{"record":{"id":"f42bd8f2aa5039ea","repo":"lyswhut/lx-music-desktop","slug":"keyword-missing","errorCode":null,"errorMessage":"Keyword missing","messagePattern":"Keyword missing","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/renderer/core/useApp/useDeeplink/useMusicAction.js","lineNumber":27,"sourceCode":"import { focusWindow } from '@renderer/utils/ipc'\nimport { playNext } from '@renderer/core/player/action'\nimport { toNewMusicInfo } from '@common/utils/tools'\nimport { LIST_IDS } from '@common/constants'\nimport { getOtherSource } from '@renderer/core/music/utils'\n\nconst useSearchMusic = () => {\n  const router = useRouter()\n\n  return ({ paths, data: params }) => {\n    let text\n    let source\n    if (params) {\n      text = dataVerify([\n        { key: 'keywords', types: ['string', 'number'], max: 128, required: true },\n      ], params).keywords\n      source = params.source\n    } else {\n      if (!paths.length) throw new Error('Keyword missing')\n\n      if (paths.length > 1) {\n        text = paths[1]\n        source = paths[0]\n      } else {\n        text = paths[0]\n      }\n\n      if (text.length > 128) text = text.substring(0, 128)\n    }\n\n    if (isShowPlayerDetail.value) setShowPlayerDetail(false)\n    const sourceList = [...sources, 'all']\n    source = sourceList.includes(source) ? source : null\n    setTimeout(() => {\n      router.replace({\n        path: '/search',\n        query: {","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/lyswhut/lx-music-desktop/blob/9c364b482e5621a1d38b50e8610d2fb974457e6e/src/renderer/core/useApp/useDeeplink/useMusicAction.js#L9-L45","documentation":"Error \"Keyword missing\" thrown in lyswhut/lx-music-desktop.","triggerScenarios":"Thrown at src/renderer/core/useApp/useDeeplink/useMusicAction.js:27 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":"9c364b482e5621a1d38b50e8610d2fb974457e6e","analyzedAt":"2026-08-12T15:14:48.244Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}