Give the PHP layer somewhere to record what it swallowed

This commit is contained in:
Gmer4Lfe
2026-08-24 18:51:36 -04:00
parent 492757ce70
commit eda411c0be
6 changed files with 55 additions and 5 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ if ($action === 'list_scripts') {
$label = str_replace('_', ' ', basename($rel, '.sh'));
$groups[$folder][] = ['id' => $rel, 'label' => $label];
}
} catch (Exception $e) {}
} catch (Exception $e) { vv_log_error('api/rsync_win_arrays.php', 'script tree walk failed: ' . $e->getMessage()); }
ksort($groups);
foreach ($groups as &$g) usort($g, fn($a, $b) => strcmp($a['id'], $b['id']));
echo json_encode(['ok' => true, 'groups' => $groups]);