mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1403832 - part2 : reuse ErrorName() in MediaResult::Description(). r=jya
MozReview-Commit-ID: AN6v18RwlAw --HG-- extra : rebase_source : 4d8e7370a166441005b5e9d7d632e526be666b10
This commit is contained in:
parent
1bc4324cb2
commit
b25ce830dd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user