commit | cfb3d4856ea02e6c5eb54b6f9081530c30a5dca9 | [log] [tgz] |
---|---|---|
author | Nandana Dutt <nandana@google.com> | Wed Feb 20 11:25:35 2019 +0000 |
committer | Nandana Dutt <nandana@google.com> | Thu Feb 21 16:17:54 2019 +0000 |
tree | 16021e8f3fea73747d4e4a19ab07d2f30db27fc2 | |
parent | f1324dcacea4163d50d6a4d588ed4f89e5758a11 [diff] [blame] |
Add a new error code for disallowing concurrent bugreports BUG:123571915 Test: manual Change-Id: I8787137c3cfeb33aacfa439f6eab1a668977e572
diff --git a/services/core/java/com/android/server/os/BugreportManagerServiceImpl.java b/services/core/java/com/android/server/os/BugreportManagerServiceImpl.java index 1dada92..f4454ae 100644 --- a/services/core/java/com/android/server/os/BugreportManagerServiceImpl.java +++ b/services/core/java/com/android/server/os/BugreportManagerServiceImpl.java
@@ -146,8 +146,8 @@ if (isDumpstateBinderServiceRunningLocked()) { Slog.w(TAG, "'dumpstate' is already running. Cannot start a new bugreport" + " while another one is currently in progress."); - // TODO(b/111441001): Use a new error code; add this to the documentation of the API. - reportError(listener, IDumpstateListener.BUGREPORT_ERROR_RUNTIME_ERROR); + reportError(listener, + IDumpstateListener.BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS); return; }