Use standard error message in catch of copy file call

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
colton
2021-10-11 15:01:16 -04:00
committed by Colton Padden
parent 10f513dd8c
commit 0a788da873
+1 -1
View File
@@ -112,7 +112,7 @@ async function moveApp(tempDir: string, destination: string, id: string) {
await fs.copy(tempFile, destFile).catch(error => {
throw new Error(
`Failed to move file from ${tempFile} to ${destFile}: ${error.message}`,
`Failed to move file from ${tempFile} to ${destFile}, ${error}`,
);
});
}