<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -102,7 +102,7 @@ module HTTParty
     #     format :json
     #   end
     def format(f)
-      raise UnsupportedFormat, &quot;Must be one of: #{AllowedFormats.values.join(', ')}&quot; unless AllowedFormats.value?(f)
+      raise UnsupportedFormat, &quot;Must be one of: #{AllowedFormats.values.uniq.join(', ')}&quot; unless AllowedFormats.value?(f)
       default_options[:format] = f
     end
     </diff>
      <filename>lib/httparty.rb</filename>
    </modified>
    <modified>
      <diff>@@ -159,6 +159,13 @@ describe HTTParty do
         @klass.format :foobar
       end.should raise_error(HTTParty::UnsupportedFormat)
     end
+
+    it 'should only print each format once with an exception' do
+      lambda do
+        @klass.format :foobar
+      end.should raise_error(HTTParty::UnsupportedFormat, &quot;Must be one of: json, xml, html, yaml, plain&quot;)
+    end
+
   end
 
   describe &quot;with explicit override of automatic redirect handling&quot; do</diff>
      <filename>spec/httparty_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>acd306859d31d97d469d41500a2526c8f9a6e39a</id>
    </parent>
  </parents>
  <author>
    <name>jgeiger</name>
    <email>jgeiger@gmail.com</email>
  </author>
  <url>http://github.com/alexvollmer/httparty/commit/0b067f7a2ccfc0832021d5c09e558f4bac6c84ca</url>
  <id>0b067f7a2ccfc0832021d5c09e558f4bac6c84ca</id>
  <committed-date>2009-03-30T16:57:46-07:00</committed-date>
  <authored-date>2009-03-05T13:06:02-08:00</authored-date>
  <message>only show the acceptable format one time per format on exception

Signed-off-by: John Nunemaker &lt;nunemaker@gmail.com&gt;</message>
  <tree>24ebc7cfffb1df4ed7f5a38ec7f5d7ae950e904d</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
