Commits

camlspotter committed 89341e3

better error message when no spot file is found

  • Participants
  • Parent commits 6271544
  • Branches ocamlspot

Comments (0)

Files changed (1)

File ocamlspot/ocamlspot.el

 		    (if err
 			(ocamlspot-message-add (concat "Error: " err))))
 		  start-end))
-	    (ocamlspot-message-add "Error: no tree node found there")
+
+	    (let ((err (ocamlspot-find-query-result "Error")))
+	      (if err
+		  (ocamlspot-message-add (concat "Error: " err))
+		(ocamlspot-message-add "Error: no tree node found there")))
 	    nil))))))
 
 ;; Jump to [position] of [filename], with highlighting the spot overlay