title: How to get better error messages when parsing JSON with Argonaut and custom codecs
body: <p>I'm using Argonaut to parse JSON with my custom codecs. My code looks like this:</p>
  
  
  
  <pre><code>val json: String = ...
  val parsed = Parse.decodeEither[MyClass](json)
  val checks = if (parsed.isRight) parsed.right.get
  else sys.error("Unable to parse MyClass json: " + parsed.left)
  </code></pre>
  
  <p>However, I never get any useful error messages. All I get is <code>java.lang.RuntimeException: Unable to parse MyClass json: LeftProjection(Left(String: CursorHistory(List())))</code>.</p>
  
  <p>What is the proper way to handle decoding errors?</p>
  
  <p><strong>Edit</strong>: my question is not what to do with the provided error message. It would be <em>great</em> if Argonaut could say something like "Parsing error at position X, unexpected member y" or something like that. Is that possible?</p>