andrea aime wrote:
> Unfortunately many exceptions are not classified in a way that lets the code > know if the issue was a user problem orĀ > an internal error, so all we can do to hide the details without significant > refactoring is to tell the user "something went wrong" ... > which of course would not be that useful. Another extreme is Mapserver which can send to all users messages like this where only the password is hidden: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> msDrawMap(): Image handling error. Failed to draw layer named 'landuse_layer4'. msPostGISLayerOpen(): Query error. Database connection failed (FATAL: database "osm" does not exist ) with connect string 'host=localhost dbname=osm user=www-data password=******** port=5432' Is the database running? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
