From 0c7ed6b36f89d57ce56606698d6f4d04e55cbb56 Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Thu, 2 Mar 2017 21:30:54 -0600 Subject: [PATCH] error tweaks --- bbj.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bbj.el b/bbj.el index 2056459..cecff89 100644 --- a/bbj.el +++ b/bbj.el @@ -107,7 +107,10 @@ for all JSON tourists." (setq message (bbj-descend json 'error 'description)) (case (bbj-descend json 'error 'code) ;; haha epic handling - ((4 5 6 7) (error message)) + (4 (user-error + (if bbj-logged-in message + "Not logged in. Call M-x bbj-login"))) + ((5 6 7) (user-error message)) (otherwise json)))))