Fix misleading error messages am: 34b22839f2

am: 500156a876

Change-Id: Iead759a89f9fb169e9535ee9ee2223dbc27c5d4a
This commit is contained in:
Inseob Kim 2018-04-11 02:21:24 -07:00 committed by android-build-merger
commit 5e6f0101a0

View file

@ -1093,13 +1093,13 @@ func checkLinkType(ctx android.ModuleContext, from *Module, to *Module, tag depe
fromApi, err := strconv.Atoi(String(from.Properties.Sdk_version))
if err != nil {
ctx.PropertyErrorf("sdk_version",
"Invalid sdk_version value (must be int): %q",
"Invalid sdk_version value (must be int or current): %q",
String(from.Properties.Sdk_version))
}
toApi, err := strconv.Atoi(String(to.Properties.Sdk_version))
if err != nil {
ctx.PropertyErrorf("sdk_version",
"Invalid sdk_version value (must be int): %q",
"Invalid sdk_version value (must be int or current): %q",
String(to.Properties.Sdk_version))
}