From 7ae02a62fea663c50184a6d5ed0b03452f490431 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 8 Nov 2024 21:11:23 +0100 Subject: [PATCH] quote the filename --- dashboard/src/models/DirectoryModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/models/DirectoryModel.js b/dashboard/src/models/DirectoryModel.js index 9e2469600..602cae4a3 100644 --- a/dashboard/src/models/DirectoryModel.js +++ b/dashboard/src/models/DirectoryModel.js @@ -187,7 +187,7 @@ export function createDirectoryModel(origin, accessToken, api) { if (action === 'copy') result = await this.copy(this.buildFilePath(files[f].folderPath, files[f].name), targetPath); if (result.status === 404) { - throw `Source file ${files[f].name} not found`; + throw `Source file "${files[f].name}" not found`; } else if (result.status === 409) { targetPath += '-copy'; continue;