              matches (query-ws-by-file-line-range file start-line line)
              [{:keys [name inner-path]}] matches
              kids (:children (sd/ws-deref!))
-             _ (do (sd/ws-cycle-all-traces!)
-                   (sd/ws-clear-log!)
-                   (when (nil? inner-path) ;; don't inner-trace an inner trace
-                     (sd/ws-add-deep-trace-fn!* name))
-                   (replay! kids))
+             _ (do (when-not (empty? matches)
+                     (sd/ws-cycle-all-traces!)
+                     (sd/ws-clear-log!)
+                     (when (nil? inner-path) ;; don't inner-trace an inner trace
+                       (sd/ws-add-deep-trace-fn!* name))
+                     (replay! kids)))
              matches' (query-ws-by-file-line-range file start-line line)
-             out (if-not (nil? matches')
+             out (if-not (or (empty? matches)
+                             (empty? matches'))
                    (-> matches'
                        util/wrap-kids
                        so/tree->meta-string-pairs
                        clj->nrepl)
-                   {:string (str "No trace records found for function at line: " line)})]
+                   (clj->nrepl [[nil (str "No trace records found for function at line: " line)]]))]
          (t/send transport (response-for msg
                                          :value out)))
        (catch Exception e

        (cond
          (nil? frm) nil
          (<= (:line m) line (:end-line m)) frm
          :else (recur rdr-iter))))))

(defn get-meta-at-pos-in-source

               (update-in [:path] str)
               (update-in [:header] #(when % 1)))])
        line-meta))

;; ======================

