@@ -61,9 +61,9 @@ function parse_data()
echo $_GET['callback'] . '(' . json_encode($return ). ')';
}catch (PDOException $e){
// report error message
- echo $e->getMessage();
+ echo $_GET['callback'] . '(' . json_encode( $e->getMessage() ). ')';
} catch(Exception $e)
{
}