Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2f52dd2 authored by Clément Julliard's avatar Clément Julliard Committed by Android (Google) Code Review
Browse files

Merge "Improve error message in setDestinationInExternalPublicDir." into main

parents 46c3f692 38c94a3e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -575,8 +575,9 @@ public class DownloadManager {
                    extras.putString(Downloads.DIR_TYPE, dirType);
                    client.call(Downloads.CALL_CREATE_EXTERNAL_PUBLIC_DIR, null, extras);
                } catch (RemoteException e) {
                    throw new IllegalStateException("Unable to create directory: "
                            + file.getAbsolutePath());
                    throw new IllegalStateException(
                        "Unable to create directory: " + file.getAbsolutePath(),
                        e);
                }
            } else {
                if (file.exists()) {