⚠️ Handle SFTP errors without capturing the error object in deploy script
This commit is contained in:
@@ -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...`
|
||||||
|
|||||||
Reference in New Issue
Block a user