Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created July 20, 2012 21:50
Show Gist options
  • Save springmeyer/3153485 to your computer and use it in GitHub Desktop.
Save springmeyer/3153485 to your computer and use it in GitHub Desktop.
Index: backend-mapnik/renderd.cc
===================================================================
--- backend-mapnik/renderd.cc (revision 28499)
+++ backend-mapnik/renderd.cc (working copy)
@@ -14,7 +14,7 @@
#include <mapnik/datasource_cache.hpp>
#include <mapnik/font_engine_freetype.hpp>
-#include <mapnik/config_error.hpp>
+#include <exception>
#include "networklistener.h"
@@ -136,10 +136,10 @@
debug("added style '%s' from map %s", stylename.c_str(), configfile);
rv = true;
}
- catch (mapnik::config_error cfgerr)
+ catch (std::exception const& ex)
{
warning("cannot add %s", configfile);
- warning("%s", cfgerr.what());
+ warning("%s", ex.what());
}
return rv;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment