Bug 1696460 - Improve bind error logging. r=aklotz

This error is sent to the native layer so we never log it (at least locally).

This also adds a "cause" exception to have the full stacktrace.

Differential Revision: https://phabricator.services.mozilla.com/D108038
This commit is contained in:
Agi Sferro 2021-03-12 00:01:11 +00:00
Родитель 448bc74775
Коммит f1becc166b
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -709,7 +709,9 @@ public final class GeckoProcessManager extends IProcessManager.Stub {
builder.append("; Type: ");
builder.append(type.toString());
result.completeExceptionally(new RuntimeException(builder.toString()));
final RuntimeException exception = new RuntimeException(builder.toString(), error);
Log.e(LOGTAG, "Could not bind to process", exception);
result.completeExceptionally(exception);
});
}