gsdriver / ssml-check-core

Core SDK for ssml-check
MIT License
13 stars 10 forks source link

Add error message for parse issues #22

Closed gowthamravichandran closed 1 year ago

gowthamravichandran commented 1 year ago

Describe the bug When the xml2json encounters a parse, the library returns a user defined message can't parse ssml

  {
    type: "Can't parse SSML"
  }

To Reproduce dummy ssml string

Expected behavior Along with the user defined message, return the actual error message

  {
    type: "Can't parse SSML",
    message: 'Text data outside of root node.\nLine: 0\nColumn: 17\nChar: g'
  }

Environment (please complete the following information):