Skip to content

Commit 97eacb4

Browse files
committed
improved error message when deleting unnamed file
1 parent f92d742 commit 97eacb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class ParseFile {
320320
*/
321321
destroy() {
322322
if (!this._name) {
323-
throw new Error('Cannot delete an unsaved ParseFile.');
323+
throw new Error('Cannot delete an unnamed file.');
324324
}
325325
const controller = CoreManager.getFileController();
326326
return controller.deleteFile(this._name).then(() => {

0 commit comments

Comments
 (0)