⚠️ Handle SFTP errors without capturing the error object in deploy script
This commit is contained in:
@@ -358,7 +358,7 @@ async function deploy() {
|
||||
try {
|
||||
await ssh.putFile(file.local, file.remote);
|
||||
console.log(` ✅ ${path.basename(file.local)}`);
|
||||
} catch (error) {
|
||||
} catch () {
|
||||
// If SFTP fails, fall back to cat method
|
||||
console.log(
|
||||
` ⚠️ SFTP failed for ${path.basename(file.local)}, using cat fallback...`
|
||||
|
||||
Reference in New Issue
Block a user