function parseFileOrThrow(fileContent) {
  const result = parse.getOasObject(fileContent);
  if (result.result === false) {
    throw new ParseError(result.reason);
  }
  return result;
}
Parses a node content or throw ParseError if there's any error
@param {string} fileContent The content from the current node
@returns {object} The parsed content