   [spec args]
   (when-not (s/valid? spec args)
     (throw (ex-info "Invalid args"
-                    {:error "Invalid args"}))))
+                    {::validation-error "Invalid args"}))))
 
 ;; Commands -----
 

            [time-tracker.util :as util]
            [clojure.spec :as s]
            [time-tracker.timers.spec]
            [clojure.algo.generic.functor :refer [fmap]]))

;; Connection management -------



(def command-map
  (wrap-middlewares
   [wrap-exception wrap-validator wrap-transaction]
   (merge {"create-and-start-timer" (wrap-can-create-timer
                                     create-and-start-timer-command!)}
          (wrap-middlewares
