Skip to content

Commit

Permalink
Making the message more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtmanifest committed Sep 3, 2012
1 parent 1d13549 commit e770ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clj/http/async/client/headers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
([k default] (if (.containsKey hds k)
(v hds k)
default)))
(cons [m] (throw (UnsupportedOperationException. "Headers are read only.")))
(cons [m] (throw (UnsupportedOperationException. "Form 'cons' not supported: headers are read only.")))
(count [] (.size hds))
(assoc [k v] (throw (UnsupportedOperationException. "Headers are read only.")))
(without [k] (throw (UnsupportedOperationException. "Headers are read only")))
(assoc [k v] (throw (UnsupportedOperationException. "Form 'assoc' not supported: headers are read only.")))
(without [k] (throw (UnsupportedOperationException. "Form 'without' not supported: headers are read only")))
(seq [] ((fn thisfn [plseq]
(lazy-seq
(when-let [pseq (seq plseq)]
Expand Down

0 comments on commit e770ddf

Please sign in to comment.