Fix misleading error messages am: 34b22839f2
am: 500156a876
Change-Id: Iead759a89f9fb169e9535ee9ee2223dbc27c5d4a
This commit is contained in:
commit
5e6f0101a0
1 changed files with 2 additions and 2 deletions
4
cc/cc.go
4
cc/cc.go
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue