CRdie

All notes and input on 2.0 Development are herein. <ul><li>Feature requests</li>
<li>Bug Reports</li>
<li>Beta Testing Feedback</li>
<li>Open Dev Discussion</li></ul>

Moderator: Coranto Moderator Team

CRdie

Postby LoneOwl » Mon Nov 03, 2003 9:54 pm

First, I think this should be added to CRdie to help pinpoint errors.
Code: Select all
...
    if ($!) {
        print "Perl may have generated the following error: $!\n<br>";
    }
    print "Stack Trace:\n<blockquote>";
        my $stack = '';
        my $i = 0;
        while (my (undef, $filename, $line, $sub) = caller($i++)) {
            $sub =~ s/^.*:://;
            $stack = "$sub in $filename, line $line<br>" . $stack;
        }
    print "$stack</blockquote>\n";
    print "Perl Version: $]\n<br>";
...

And secondly, GetDirInfo should use getcwd instead of cwd. I have perl 5.6.0 installed so don't know about the Cwd module for older versions, but `pwd` is cwd, and getcwd is a more in depth version. Using cwd and `pwd` as an alternative would just be doing the same thing twice.
User avatar
LoneOwl
 
Posts: 1465
Joined: Sun Mar 10, 2002 2:57 am
Location: That one place, you know?

Postby Lawrence » Sun Nov 09, 2003 11:51 pm

Something to look into for the next release :)
Stuff I'm working on:
- nothing

Addons:
http://sourceforge.net/projects/lw-craddons/
Lawrence
 
Posts: 1524
Joined: Sun Sep 16, 2001 4:24 am

Postby LoneOwl » Mon Nov 10, 2003 12:44 am

I'm using something similar(but including packages) in a script I'm writing. The only real modification is the string. I know it'll help me a lot, and figure it'll help Coranto a great deal too.
User avatar
LoneOwl
 
Posts: 1465
Joined: Sun Mar 10, 2002 2:57 am
Location: That one place, you know?

Postby kriko » Wed Nov 12, 2003 8:15 pm

This would definately make the newbie bug reports easier to solve :)
Kristjan aka. kriko
now a wireless expert
User avatar
kriko
 
Posts: 3328
Joined: Sat Feb 24, 2007 8:13 pm

Postby Lawrence » Fri Nov 14, 2003 3:25 am

That's why i'm gonna integrate it into the 1.30 series ( as soon as the BuildNews bugs have been worked out )
Stuff I'm working on:
- nothing

Addons:
http://sourceforge.net/projects/lw-craddons/
Lawrence
 
Posts: 1524
Joined: Sun Sep 16, 2001 4:24 am


Return to Coranto 2.0 Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron