Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
64841f63
Unverified
Commit
64841f63
authored
Oct 05, 2021
by
Clement Skau
Committed by
GitHub
Oct 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds analyze_sample_code exit for when pub fails (#91024)
parent
98120d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
analyze_sample_code.dart
dev/bots/analyze_sample_code.dart
+4
-1
No files found.
dev/bots/analyze_sample_code.dart
View file @
64841f63
...
@@ -121,7 +121,7 @@ Future<void> main(List<String> arguments) async {
...
@@ -121,7 +121,7 @@ Future<void> main(List<String> arguments) async {
if
(
parsedArguments
[
'global-activate-snippets'
]!
as
bool
)
{
if
(
parsedArguments
[
'global-activate-snippets'
]!
as
bool
)
{
try
{
try
{
Process
.
runSync
(
final
ProcessResult
activateResult
=
Process
.
runSync
(
Platform
.
resolvedExecutable
,
Platform
.
resolvedExecutable
,
<
String
>[
<
String
>[
'pub'
,
'pub'
,
...
@@ -132,6 +132,9 @@ Future<void> main(List<String> arguments) async {
...
@@ -132,6 +132,9 @@ Future<void> main(List<String> arguments) async {
],
],
workingDirectory:
_flutterRoot
,
workingDirectory:
_flutterRoot
,
);
);
if
(
activateResult
.
exitCode
!=
0
)
{
exit
(
activateResult
.
exitCode
);
}
}
on
ProcessException
catch
(
e
)
{
}
on
ProcessException
catch
(
e
)
{
stderr
.
writeln
(
'Unable to global activate snippets package at version
$_snippetsActivateVersion
:
$e
'
);
stderr
.
writeln
(
'Unable to global activate snippets package at version
$_snippetsActivateVersion
:
$e
'
);
exit
(
1
);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment