The return type from retPost was an stdObject not a string. This created
an error when it was converted to a string during exception handling.

Updated function comment to be more accurate
Update exception string to print more detailed message and avoid error.