Skip to content

Instantly share code, notes, and snippets.

@cprice404
Created November 26, 2013 18:25
Show Gist options
  • Save cprice404/7663330 to your computer and use it in GitHub Desktop.
Save cprice404/7663330 to your computer and use it in GitHub Desktop.
Plumbing: missing key error message
(ns foo
(:require [plumbing.core :refer [fnk]]
[plumbing.graph :as graph]))
(defn service1
[]
{:service1 (fnk [[:non-existent-service foo]]
{:bar (fn [] (println "BAR!"))})})
(let [compiled (graph/eager-compile (service1))]
(compiled {})
(println "yo"))
;; => RuntimeException Key :non-existent-service not found in null plumbing.fnk.impl/safe-get (impl.clj:38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment