From d4550ae561ddf939f11e019b16581df5a5e4ea04 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Mon, 30 Dec 2024 05:39:44 +0100 Subject: [PATCH] Better logging for scp --- lib/plugins/scp/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/scp/index.js b/lib/plugins/scp/index.js index ffb9d8948..4b9c60d47 100644 --- a/lib/plugins/scp/index.js +++ b/lib/plugins/scp/index.js @@ -46,7 +46,7 @@ async function upload(dir, scpOptions, prefix) { } await client.uploadDir(dir, path.join(scpOptions.destinationPath, prefix)); } catch (error) { - log.error(error); + log.error(`Error uploading dir ${dir}` + error); throw error; } finally { if (client) { @@ -66,7 +66,7 @@ async function uploadFiles(files, scpOptions, prefix) { ); } } catch (error) { - log.error(error); + log.error(`Error uploading files ${files}}` + error); throw error; } finally { if (client) {