Function getExtrinsicErrorMessage