Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46322 invoked from network); 9 Apr 2015 15:12:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2015 15:12:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-la0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:34086] helo=mail-la0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/22-31311-7F696255 for ; Thu, 09 Apr 2015 11:12:56 -0400 Received: by laat2 with SMTP id t2so84837591laa.1 for ; Thu, 09 Apr 2015 08:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5ccY4ZgluLH9TlQsq1gklg9dqw0AJ/KHHB1t1SwgIA4=; b=zE4xgFu+o7ubaJ88iwLOIzfM4Q8ip3C3VBmS1Ew4Do+O/1QzARH73ecQ4YBOMWPKAx rYlQXs2p+zU8Po7tswmzfLoWbTgpkMj4GhVORltEH2jR8u+17RbUCYZrkJAxaTyES/nI usCZ30s7Scy7qXd7tduMxt4DfeCWuDx9oRuoKRCcH8WYMfLjH0BZu91gOTgCh59jZy8d l28NFc5oYHFC18etl3A+mjpEV1/KfmQvOkJhLyN/23OCppcQNBzFiF0Rj3s1rr+XmXES pzO8/CesFT+qouZtzdRHEvF5v4rF97TZLyP7fXSUANjzuUNcMrc7HYao6egNG5prKW8x aTmA== MIME-Version: 1.0 X-Received: by 10.112.29.180 with SMTP id l20mr17536558lbh.95.1428592372454; Thu, 09 Apr 2015 08:12:52 -0700 (PDT) Received: by 10.25.90.75 with HTTP; Thu, 9 Apr 2015 08:12:52 -0700 (PDT) Received: by 10.25.90.75 with HTTP; Thu, 9 Apr 2015 08:12:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Apr 2015 11:12:52 -0400 Message-ID: To: Nikita Popov Cc: internals@lists.php.net, Niklas Keller Content-Type: multipart/alternative; boundary=001a113402e0e39a9105134c14d5 Subject: Re: [PHP-DEV] Exception message cleanup From: ircmaxell@gmail.com (Anthony Ferrara) --001a113402e0e39a9105134c14d5 Content-Type: text/plain; charset=UTF-8 Nikita, On Apr 9, 2015 8:56 AM, "Nikita Popov" wrote: > > On Thu, Apr 9, 2015 at 12:33 PM, Niklas Keller wrote: > > > Hi Nikita, > > > > I like the new display format, but there's one thing I miss. If you > > replace the exception name for warnings and fatals, how does a user know > > which exception he has to catch? > > > > Regards, Niklas > > > Sorry, I don't understand what you mean here. The first part of the message > says which exception you need to catch, right? > > Nikita I think he means something greppable in the output. So prefix the exception name in your custom message with "Uncaught " so people can search the output for "Uncaught \w+" +1 on the change overall (with a "Uncaught" prefix before the exception classname). Anthony --001a113402e0e39a9105134c14d5--