Clearer error if module doesn't declare any source files

Bug: 72552006
Test: Make a module with no source files,
      run `m -j nothing`, notice that the error tells
      which module has no sources

Change-Id: Ib169e7b3cb86d840a3acd644e42cd1f9f65e1304
This commit is contained in:
Jeff Gaston 2018-02-26 21:00:25 -05:00
parent e752292f26
commit 960acf1b88
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ include $(BUILD_SYSTEM)/dex_preopt_odex_install.mk
# Make sure there's something to build.
ifdef full_classes_jar
ifndef need_compile_java
$(error $(LOCAL_PATH): Target java module does not define any source or resource files)
$(call pretty-error,Target java module does not define any source or resource files)
endif
endif