-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve error output for failed shorebird preview on iOS (#2634)
- Loading branch information
1 parent
fe4cbbd
commit bb1807c
Showing
6 changed files
with
334 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 30 additions & 1 deletion
31
packages/shorebird_cli/lib/src/executables/devicectl/nserror.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
packages/shorebird_cli/test/fixtures/devicectl/install_failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"error": { | ||
"code": 1, | ||
"domain": "com.apple.CoreDevice.ControlChannelConnectionError", | ||
"userInfo": { | ||
"NSLocalizedDescription": { | ||
"string": "Internal logic error: Connection was invalidated" | ||
}, | ||
"NSUnderlyingError": { | ||
"error": { | ||
"code": 0, | ||
"domain": "com.apple.CoreDevice.ControlChannelConnectionError", | ||
"userInfo": { | ||
"NSLocalizedDescription": { | ||
"string": "Transport error" | ||
}, | ||
"NSUnderlyingError": { | ||
"error": { | ||
"code": 60, | ||
"domain": "Network.NWError", | ||
"userInfo": { | ||
"NSDescription": { | ||
"string": "Operation timed out" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"info": { | ||
"arguments": [ | ||
"devicectl", | ||
"device", | ||
"install", | ||
"app", | ||
"--device", | ||
"00008110-000265A10E92801E", | ||
"/Users/bryanoltman/shorebirdtech/_shorebird/shorebird/bin/cache/previews/3c2ca65a-6401-491a-8942-c9921ba43cec/ios_1.0.0+2_508316.app", | ||
"--json-output", | ||
"/var/folders/64/dj6krpq1093dmx08dy4r1cwh0000gn/T/AKL8Wl/devicectl.out.json" | ||
], | ||
"commandType": "devicectl.device.install.app", | ||
"environment": { | ||
"TERM": "xterm-256color" | ||
}, | ||
"jsonVersion": 2, | ||
"outcome": "failed", | ||
"version": "397.24" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.