mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(upload-automation): harden android and electron failure handling
Updated Android/Electron upload paths to fail deterministically and report consistent stage details, while removing unsafe stage casting and path/package mismatches. This keeps postimages automation behavior intact and makes failures easier to diagnose.
This commit is contained in:
@@ -85,6 +85,9 @@ function validateRecipes() {
|
||||
if (!Array.isArray(recipe.blockedIndicators) || recipe.blockedIndicators.length === 0) {
|
||||
throw new Error(`Recipe validation failed: ${provider} blockedIndicators must be non-empty array`);
|
||||
}
|
||||
if (!Array.isArray(recipe.submitSelectorCandidates) || recipe.submitSelectorCandidates.length === 0) {
|
||||
throw new Error(`Recipe validation failed: ${provider} submitSelectorCandidates must be non-empty array`);
|
||||
}
|
||||
if (typeof recipe.timeoutMs !== 'number' || recipe.timeoutMs <= 0) {
|
||||
throw new Error(`Recipe validation failed: ${provider} timeoutMs must be positive number`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user