Better logging for scp
This commit is contained in:
parent
efbae59763
commit
d4550ae561
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue