{"record":{"id":"6a24638559ec1855","repo":"tonhowtf/omniget","slug":"nenhum-formato-selecionado","errorCode":null,"errorMessage":"nenhum formato selecionado","messagePattern":"nenhum formato selecionado","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/omniget-core/src/core/tools/icon_pack.rs","lineNumber":230,"sourceCode":"            \"icon-192.png\".into(),\n            Box::new(|| png_bytes(&at(&base, 192))),\n        ));\n        jobs.push((\n            \"icon-512.png\".into(),\n            Box::new(|| png_bytes(&at(&base, 512))),\n        ));\n    }\n    if opts.win_ico {\n        jobs.push((\n            \"app.ico\".into(),\n            Box::new(|| ico_bytes(&base, &[16, 24, 32, 48, 64, 128, 256])),\n        ));\n    }\n    if opts.icns {\n        jobs.push((\"icon.icns\".into(), Box::new(|| icns_bytes(&base))));\n    }\n    if jobs.is_empty() {\n        return Err(anyhow!(\"nenhum formato selecionado\"));\n    }\n\n    let total = jobs.len() as u64;\n    let mut outputs = Vec::new();\n    let mut largest = 0u32;\n    for (i, (name, make)) in jobs.iter().enumerate() {\n        super::report(\n            progress,\n            \"img-icon\",\n            \"progress\",\n            i as u64,\n            Some(total),\n            Some(name.clone()),\n        );\n        let bytes = make()?;\n        let path = folder.join(name);\n        std::fs::write(&path, &bytes)?;\n        outputs.push(IconOut {","sourceCodeStart":212,"sourceCodeEnd":248,"githubUrl":"https://github.com/tonhowtf/omniget/blob/8600b91f4246848bac346874daa9e61c1fc5677a/src-tauri/omniget-core/src/core/tools/icon_pack.rs#L212-L248","documentation":"Options validation in icon_pack run: none of the output format flags (PNG set, win_ico, icns) was enabled, so the job list is empty and there would be nothing to generate — the run refuses rather than produce an empty icon pack.","triggerScenarios":"Thrown at src-tauri/omniget-core/src/core/tools/icon_pack.rs:230 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable at least one output format (PNG, ICO, or ICNS) in the options","Default to a sane format set when none is chosen","Validate the form/UI so the run button is disabled until a format is picked"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8600b91f4246848bac346874daa9e61c1fc5677a","analyzedAt":"2026-09-12T14:29:19.317Z","contentChangedAt":"2026-09-12T14:29:19.317Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}