Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8002510D1D for ; Thu, 6 Mar 2014 17:42:40 +0000 (UTC) Received: (qmail 64194 invoked by uid 500); 6 Mar 2014 17:42:35 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 63459 invoked by uid 500); 6 Mar 2014 17:42:23 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 63416 invoked by uid 99); 6 Mar 2014 17:42:19 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 17:42:19 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D4C80939598; Thu, 6 Mar 2014 17:42:18 +0000 (UTC) From: garrensmith To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb pull request: Fauxton: Fix error if anon. user tries to cr... Content-Type: text/plain Message-Id: <20140306174218.D4C80939598@tyr.zones.apache.org> Date: Thu, 6 Mar 2014 17:42:18 +0000 (UTC) Github user garrensmith commented on a diff in the pull request: https://github.com/apache/couchdb/pull/167#discussion_r10351608 --- Diff: src/fauxton/app/addons/auth/resources.js --- @@ -20,6 +20,18 @@ function (app, FauxtonAPI, CouchdbSession) { var Auth = new FauxtonAPI.addon(); + var promiseErrorHandler = function (xhr, type, msg) { + msg = xhr; --- End diff -- @kxepal, Sometimes the arguments passed to this function is just one that is a message. So instead of doing an if else statemebt. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---