exts: improve exception message fetching