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:
@@ -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}`,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user