diff options
author | Thanos Apollo <[email protected]> | 2024-03-10 16:58:47 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-10 16:58:47 +0200 |
commit | fa24681514ea446f63e0c1fef5ebc67b31570ff6 (patch) | |
tree | fe35a0ac63c609b844f7df7b2a79ffcdbd48e416 /gnosis.el | |
parent | 2f29c48b9c90f10751bf24afdb5ab13f7fe4d3a8 (diff) |
gnosis--get-deck-name: Improve error message
Make it easier for users to understand what is going when they create
their first note.
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -455,7 +455,7 @@ Set SPLIT to t to split all input given." (defun gnosis--get-deck-name (&optional id) "Get deck name for ID, or prompt for deck name when ID is nil." (when (equal (gnosis-select 'name 'decks) nil) - (error "No decks found")) + (error "No decks found. Please create a deck first with `gnosis-add-deck'")) (if id (gnosis-get 'name 'decks `(= id ,id)) (funcall gnosis-completing-read-function "Deck: " (gnosis-select 'name 'decks)))) |