git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [1.8.0] perl/Git.pm: moving away from using Error.pm module

From
AAvner <avnermoshkovitz@lighthauslogic.com>
Date
Apr 15, 2011, 23:35 UTC
Message-ID
<1302910545319-6277964.post@n2.nabble.com>
In-Reply-To
<AANLkTimwhYwQz9W3tAa2=Q0nJY8AoZYq=7KeX5O2Ca_G@mail.gmail.com>

Using the packages Exception::Class and Carp together, compete to set the eval_error variable ($@) For example, throwing an object (of type Exception::Class) can result in the eval_error variable ($@) getting a scalar type after the eval statement if the Carp is fast enough to set a string (of type scalar) that contains the error stack. The result is that following the eval statement the catch sees a different type than what it expects and does not react as planned.

Avi

-- View this message in context: http://git.661346.n2.nabble.com/1-8-0-perl-Git-pm-moving-away-from-using-Error-pm-module-tp6046799p6277964.html Sent from the git mailing list archive at Nabble.com.

Previous: Ævar Arnfjörð Bjarmason
Message 7 of 7 in “[1.8.0] perl/Git.pm: moving away from using Error.pm module”
  1. Jakub NarebskiFeb 20, 2011
  2. Junio C HamanoFeb 21, 2011
  3. Jakub NarebskiFeb 21, 2011
  4. NickFeb 21, 2011
  5. Jakub NarebskiFeb 21, 2011
  6. Ævar Arnfjörð BjarmasonFeb 21, 2011
  7. AvnerApr 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.