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
4fa9e571
Commit
4fa9e571
authored
Dec 10, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #872 from abarth/build_errors
Improve error messages when build fails
parents
2f973fae
8eb97635
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
build.dart
packages/flutter_tools/lib/src/commands/build.dart
+5
-2
No files found.
packages/flutter_tools/lib/src/commands/build.dart
View file @
4fa9e571
...
@@ -164,7 +164,8 @@ class BuildCommand extends FlutterCommand {
...
@@ -164,7 +164,8 @@ class BuildCommand extends FlutterCommand {
outputPath:
localBundlePath
,
outputPath:
localBundlePath
,
mainPath:
mainPath
mainPath:
mainPath
);
);
onBundleAvailable
(
localBundlePath
);
if
(
result
==
0
)
onBundleAvailable
(
localBundlePath
);
}
finally
{
}
finally
{
tempDir
.
deleteSync
(
recursive:
true
);
tempDir
.
deleteSync
(
recursive:
true
);
}
}
...
@@ -195,8 +196,10 @@ class BuildCommand extends FlutterCommand {
...
@@ -195,8 +196,10 @@ class BuildCommand extends FlutterCommand {
// In a precompiled snapshot, the instruction buffer contains script
// In a precompiled snapshot, the instruction buffer contains script
// content equivalents
// content equivalents
int
result
=
await
toolchain
.
compiler
.
compile
(
mainPath:
mainPath
,
snapshotPath:
snapshotPath
);
int
result
=
await
toolchain
.
compiler
.
compile
(
mainPath:
mainPath
,
snapshotPath:
snapshotPath
);
if
(
result
!=
0
)
if
(
result
!=
0
)
{
logging
.
severe
(
'Failed to run the Flutter compiler. Exit code:
$result
'
);
return
result
;
return
result
;
}
archive
.
addFile
(
_createSnapshotFile
(
snapshotPath
));
archive
.
addFile
(
_createSnapshotFile
(
snapshotPath
));
}
}
...
...
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