Bug 1403832 - part2 : reuse ErrorName() in MediaResult::Description(). r=jya

MozReview-Commit-ID: AN6v18RwlAw

--HG--
extra : rebase_source : 4d8e7370a166441005b5e9d7d632e526be666b10
This commit is contained in:
Alastor Wu 2017-09-29 00:37:50 +08:00
parent 1bc4324cb2
commit b25ce830dd

View File

@ -61,10 +61,8 @@ public:
if (NS_SUCCEEDED(mCode)) {
return nsCString();
}
nsCString name;
GetErrorName(mCode, name);
return nsPrintfCString("%s (0x%08" PRIx32 ")%s%s",
name.get(),
ErrorName().get(),
static_cast<uint32_t>(mCode),
mMessage.IsEmpty() ? "" : " - ",
mMessage.get());