folly: to: make exceptions more informative
authorLucian Grijincu <lucian@fb.com>
Mon, 26 Jan 2015 21:43:36 +0000 (13:43 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:12:44 +0000 (13:12 -0800)
commit8c74c8066767b4061c2a5d97b615a2c05e7c8394
tree554ec45ddc3697371412d4d423268b36ee1ec9b6
parentca71b787508ff68e25dfdf0e762d8a8722573141
folly: to: make exceptions more informative

Summary: print the value which failed conversion to aid debugging.

Test Plan: run code which throws in to<> and contbuild

Reviewed By: tudorb@fb.com, andrei.alexandrescu@fb.com

Subscribers: trunkagent, folly-diffs@

FB internal diff: D1786294

Signature: t1:1786294:1421795912:00cc10923990e5aac0a15eedec09deb8e8d470d1
folly/Conv.cpp
folly/Conv.h