Export to PDF silently fails if PDF is open in Acrobat Reader

Steps to reproduce

1 - Select a note.
2 - Export to PDF
3 - Obsidian reports "PDF Saved to "
4 - PDF automatically opens in Acrobat Reader
5 - Alter Note
6 - Export to PDF - Save as same file as used in Step 2
7 - Confirm that existing file should be overwritten
8 - Obsidian Reports "PDF Saved to "
9 - PDF file on disk has not changed.

Expected result

Should report "Unable to write to " as an error

Actual result

Reports "PDF file saved to " as a success message.

Environment

  • Operating system: Windows 10.

  • Acrobat Reader DC

  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.14.2
    Installer version: v0.14.2
    Operating system: Windows 10 Home 10.0.19043
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: Blue Topaz
    Snippets enabled: 0
    Safe mode: off
    Plugins installed: 3
    Plugins enabled: 3
    1: Citations
    2: Style Settings
    3: Dataview

RECOMMENDATIONS:
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help 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 help vault or disable community plugins.


Additional information

Thanks