                             fetchPartialResult = () =>
                                 return PgHoffServerRequest.Get(url + currentpage + '/' + (currentpage + pagesize), true)
                                 .then (result) =>
+                                    gotErrors = true if result.error? and not result.error.match /can\'t execute an empty query/
+
                                     if result.errormessage?
                                         throw("#{result.errormessage}")
                                     if result.error?

                boom = () =>
                    return getResult()
                        .then (result) =>
                            gotResults = result.has_result
                            gotNotices = result.has_notices
                            gotErrors = result.has_error
                            if queryCount == 1 and result.has_queryplan
                                gotQueryplan = true
                            else

    connect: ->
        paneItem = atom.workspace.getActivePaneItem()
        pane = atom.workspace.getActivePane()

        if @listServersViewPanel.isVisible()
            @listServersViewPanel.hide()
            return
