correct format string to show exception message

In example code for , the format string did not show the error message as the "%s" was missing. Fixed in this patch.