diff --git a/org-roam-dailies.el b/org-roam-dailies.el index b03d491..cfc1e8b 100644 --- a/org-roam-dailies.el +++ b/org-roam-dailies.el @@ -301,6 +301,8 @@ negative, find note N days in the past." (string= (buffer-file-name (buffer-base-buffer)) candidate)) dailies)) note) + (unless position + (user-error "Can't find current note file - have you saved it yet?")) (pcase n ((pred (natnump)) (when (eq position (- (length dailies) 1))