⚠️ Handle SFTP errors without capturing the error object in deploy script

This commit is contained in:
2026-01-28 05:26:21 +00:00
parent b434e7f3ef
commit 16c27a8cd7

View File

@@ -358,7 +358,7 @@ async function deploy() {
try { try {
await ssh.putFile(file.local, file.remote); await ssh.putFile(file.local, file.remote);
console.log(`${path.basename(file.local)}`); console.log(`${path.basename(file.local)}`);
} catch (error) { } catch () {
// If SFTP fails, fall back to cat method // If SFTP fails, fall back to cat method
console.log( console.log(
` ⚠️ SFTP failed for ${path.basename(file.local)}, using cat fallback...` ` ⚠️ SFTP failed for ${path.basename(file.local)}, using cat fallback...`