proper way to report back errors wit mapscript

Joseph Norris sirronj at PACBELL.NET
Thu Dec 16 11:52:48 PST 2004


Hello again,

I am getting the following errors that I am reporting this way using
perl/mapscript

New mapObj() error: \n
[Thu Dec 16 11:44:11 2004] [error]  New mapObj() error: \n
[Thu Dec 16 11:44:36 2004] [error]  New mapObj() error: \n


I am coding this way:

my $map = new mapscript::mapObj("/tmp/$map_file");
if(!$map){
    die " New mapObj() error: $mapscript::ms_error->{message}\n";
}



I got this ms_error-> deal from another sample script but I don't think it
is reporting what is going on.


#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);



More information about the MapServer-users mailing list