 
         type: error.LogLevel
         range: new Range([line, start], [line, end])
-        message: error.Message
+        message: error.Text
 
       decorations = _.map ranges, ({type, range}) =>
         color = switch


      # todo - remove emit here and subscribe directly from error-pane-view
      @editorDestroyedSubscription = @atomSharper.onEditorDestroyed (filePath) =>
        atom.emit 'atom-sharper:clear-syntax-errors', filePath

    detectSyntaxErrorsIn: (editor) =>

        Omni.codecheck null, editor for editor in @editors

    getWordAt: (str, pos) =>
      if str == undefined
        return {
          start: pos
          end: pos
        }

      while pos < str.length && /\W/.test str[pos]
        ++pos

