Wrote formatLibraryBugMessage to report library errors to the user.