Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24123] Windows: Incorrect error message being thrown when deployment fails due to a higher minSDKVersion

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionWon't Do
Resolution Date2021-02-11T12:13:18.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sn/a
ComponentsWindows
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeUnknown
Created2016-11-09T11:42:01.000+0000
Updated2021-02-11T12:13:18.000+0000

Description

Description

When the situtation in TIMOB-23758 occurs, the error thrown is the below
[ERROR] A debug application is already installed, please remove existing debug application
[ERROR] Error: A debug application is already installed, please remove existing debug application
    at ChildProcess.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.0.0.v20161107075927\node_modules\windowslib\lib\wptool.js:837:15)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:829:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
This is misleading as it is not the real reason as to why the install process has failed, the error returned from winappdeploycmd is the below, although this isn't exactly helpful we should still show the error message returned by winappdeploycmd
Opening connection to device at '169.254.22.147'.

Installing app...
Disconnecting.

0x80131500 - Failed to install or update package: Unspecified error
0x80131500 - Unspecified error

Steps to reproduce

On a machine with 10.0.14393 SDK installed build to a 10.0.10586 emulator

Actual result

The error shown will be related to an existing debug application to be installed

Expected result

The error message returned should be helpful to the user

Comments

  1. Kota Iguchi 2019-06-05

    So the issue here is that the tooling we are using (WinAppDeployCmd) doesn't return correct error message when target sdk version does not match. It tends to return "Unspecified error" with no additional information so we don't have a way to detect right reason.

JSON Source