diff --git a/config-templates/config.php b/config-templates/config.php
index e5bc789bdbbadbc41475e55e989dc1d6bb5bbc9c..a48e7b2eae44df7055f8b8777693f3a51c95556f 100644
--- a/config-templates/config.php
+++ b/config-templates/config.php
@@ -54,7 +54,7 @@ $config = array (
 	 * See docs/simplesamlphp-errorhandling.txt for function code example.
 	 *
 	 * Example:
-	 *   'errors.show_function' => 'sspmod_exmaple_Error_Show::show',
+	 *   'errors.show_function' => array('sspmod_example_Error_Show', 'show'),
 	 */
 
 	/**
diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php
index f31636e779a70c7bc5acac2b2d8137216ca3eff7..3772f8869fdd6f03298893a4357dbbecb1867bf2 100644
--- a/lib/SimpleSAML/Error/Error.php
+++ b/lib/SimpleSAML/Error/Error.php
@@ -242,7 +242,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception {
 			$data['email'] = '';
 		}
 
-		$show_function = $config->getString('errors.show_function', NULL);
+		$show_function = $config->getArray('errors.show_function', NULL);
 		if (isset($show_function)) {
 			assert('is_callable($show_function)');
 			call_user_func($show_function, $config, $data);