shapeindex: more consistent error output
This commit is contained in:
parent
404e221c25
commit
57c9aee63d
1 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ int main (int argc,char** argv)
|
||||||
}
|
}
|
||||||
catch (std::exception const& ex)
|
catch (std::exception const& ex)
|
||||||
{
|
{
|
||||||
clog << "Error:" << ex.what() << endl;
|
clog << "Error: " << ex.what() << endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,14 +120,14 @@ int main (int argc,char** argv)
|
||||||
|
|
||||||
if (! mapnik::util::exists (shapename_full))
|
if (! mapnik::util::exists (shapename_full))
|
||||||
{
|
{
|
||||||
clog << "error : file " << shapename_full << " does not exist" << endl;
|
clog << "Error : file " << shapename_full << " does not exist" << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
shape_file shp (shapename_full);
|
shape_file shp (shapename_full);
|
||||||
|
|
||||||
if (! shp.is_open()) {
|
if (! shp.is_open()) {
|
||||||
clog << "error : cannot open " << shapename_full << endl;
|
clog << "Error : cannot open " << shapename_full << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue