• Aleksandr Sasha Sergeev's avatar
    Add path to problematic element into json print_error · 83b07aec
    Aleksandr Sasha Sergeev authored
    Summary:
    To facilitate debugging.
    
    Privacy note: now `what()` message may contain part of JSON.
    
    parser_error `what()` message:
    
    - before the change:
    `folly::toJson: JSON object value was a NaN`
    
    - after the change:
    `folly::toJson: JSON object value was a NaN when serializing value at "outerKey"->"innerKey"`
    
    Reviewed By: yfeldblum
    
    Differential Revision: D27623818
    
    fbshipit-source-id: 86e61a0fed500eddafbd3e3bb1b9ed363ba8fcae
    83b07aec
json.cpp 30.3 KB