Skip to content

Fix: stop silently failing when failing to create new notes. fixes #1028 - #1188

Open
RobTheFiveNine wants to merge 1 commit into
community-archive:mainfrom
RobTheFiveNine:main
Open

Fix: stop silently failing when failing to create new notes. fixes #1028#1188
RobTheFiveNine wants to merge 1 commit into
community-archive:mainfrom
RobTheFiveNine:main

Conversation

@RobTheFiveNine

Copy link
Copy Markdown

This pull request fixes #1028 by adding error handling around the creation of the new note. If an error occurs, it now no longer fails silently, and will display a message in Obsidian advising to try reducing the text length before creating a note (see screenshot below).

image

I noticed someone else has added a commit in another fork using Claude to try and address this, but that commit is invalid - it is doing an arbitrary check on the file name length, which won't work cross platform and won't work for ecryptfs file systems. The right way to do this is as has been done in this pull request (i.e. catching the file system error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Silent error when failing to create a new note from a card

1 participant