fix: add better error message when can't write framework file

This commit is contained in:
Connor Tumbleson 2020-11-28 16:04:08 -05:00 committed by Connor Tumbleson
parent a91aad461e
commit 7cf9a95710

View File

@ -984,7 +984,9 @@ final public class AndrolibResources {
if (apkOptions.frameworkFolderLocation != null) { if (apkOptions.frameworkFolderLocation != null) {
LOGGER.severe("Can't create Framework directory: " + dir); LOGGER.severe("Can't create Framework directory: " + dir);
} }
throw new AndrolibException("Can't create directory: " + dir); throw new AndrolibException(String.format(
"Can't create directory: (%s). Pass a writable path with --frame-path {DIR}. ", dir
));
} }
} }