Move file to another folder fails silently when the file is under use by another application

When running the Move file to another folder command on a file that is already under use by another application (e.g. a pdf open in adobe reader), the plugin of course fails to move it (on Windows). However, no notification of this failure to move it is reported. An error, however, can be found in the console (see below). Ideally, a simple error notification would be given informing the user of this failure to move and the reason.

Steps to reproduce

  1. On Windows, open a pdf file in obsidian
  2. open file.pdf in another application like Adobe Reader
  3. run Move file to another folder command and choose folder

Did you follow the troubleshooting guide? [Y/N]

Please, follow the Troubleshooting Guide before answering Yes.

Expected result

An error pop-up message comes up informing me that the file was not moved because it is in use in another application

Actual result

PDF file silently does not get moved without the me being informed

Environment

SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.12.4
Operating system: Windows 11 Pro 10.0.26200
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 14
Restricted mode: off
Plugins installed: 37
Plugins enabled: 30
1: Commander v0.5.5
2: Dataview v0.5.68
3: Editing Toolbar v4.0.8
4: Quick Explorer v0.2.16
5: QuickAdd v2.12.1
6: Settings Search v1.3.10
7: Sort & Permute lines v0.7.0
8: Style Settings v1.0.9
9: Tag Wrangler v0.6.4
10: Templater v2.20.5
11: Text Snippets v0.1.2
12: Wikipedia Helper v2.7.0
13: Keyshots v2.8.1
14: Latex OCR v0.8.0
15: Tasks v8.0.0
16: Spaced Repetition v1.14.3
17: Git v2.38.3
18: List Callouts v1.2.9
19: asciimath v0.8.2
20: Smarter Markdown Hotkeys v1.16.4
21: PDF++ v0.40.31
22: Folder notes v1.8.19
23: TikZJax v0.5.2
24: Latex Suite v1.11.5
25: Hover Reveal v1.0.11
26: Open vault in VS Code v1.4.3
27: Another Quick Switcher v14.6.0
28: Text Transporter (Custom) v1.0.12
29: Dataview (to) Properties v0.0.24
30: Shell commands v0.23.0
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

The following error comes up in the console in dev tools when this failure happens:

node:internal/original-fs/promises:781 Uncaught (in promise) Error: EBUSY: resource busy or locked, rename 'path1\file.pdf' -> 'path2\file.pdf'
    at async Object.rename (node:internal/original-fs/promises:781:10)