Better logging for scp

This commit is contained in:
soulgalore 2024-12-30 05:39:44 +01:00
parent efbae59763
commit d4550ae561
1 changed files with 2 additions and 2 deletions

View File

@ -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) {