added pprint* method for mdb-error
parent
79cdc45339
commit
f8b2cab6d3
|
@ -1,7 +1,8 @@
|
||||||
USING: accessors arrays assocs bson.constants combinators
|
USING: accessors arrays assocs bson.constants combinators
|
||||||
combinators.smart constructors destructors formatting fry hashtables
|
combinators.smart constructors destructors formatting fry hashtables
|
||||||
io io.pools io.sockets kernel linked-assocs math mongodb.connection
|
io io.pools io.sockets kernel linked-assocs math mongodb.connection
|
||||||
mongodb.msg parser prettyprint sequences sets splitting strings
|
mongodb.msg parser prettyprint prettyprint.custom prettyprint.sections
|
||||||
|
sequences sets splitting strings
|
||||||
tools.continuations uuid memoize locals ;
|
tools.continuations uuid memoize locals ;
|
||||||
|
|
||||||
IN: mongodb.driver
|
IN: mongodb.driver
|
||||||
|
@ -32,6 +33,9 @@ CONSTANT: PARTIAL? "partial?"
|
||||||
|
|
||||||
ERROR: mdb-error msg ;
|
ERROR: mdb-error msg ;
|
||||||
|
|
||||||
|
M: mdb-error pprint* ( obj -- )
|
||||||
|
msg>> text ;
|
||||||
|
|
||||||
: >pwd-digest ( user password -- digest )
|
: >pwd-digest ( user password -- digest )
|
||||||
"mongo" swap 3array ":" join md5-checksum ;
|
"mongo" swap 3array ":" join md5-checksum ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue