Add fdb_error_msg API to retrieve error as a string

Change-Id: I12b43cc2e0cfaf1cb577f2c9f9af77030b391228