! Copyright (C) 2008, 2009 Alex Chapman
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors assocs continuations debugger fry hashtables http
+USING: accessors assocs continuations debugger hashtables http
http.client io io.encodings.string io.encodings.utf8 json.reader
-json.writer kernel locals make math math.parser namespaces sequences
+json.writer kernel make math math.parser namespaces sequences
strings urls.encoding vectors ;
IN: couchdb
TUPLE: couchdb-error { data assoc } ;
C: <couchdb-error> couchdb-error
-M: couchdb-error error. ( error -- )
+M: couchdb-error error.
"CouchDB Error: " write data>>
"error" over at [ print ] when*
"reason" of [ print ] when* ;