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
3023fe20
Unverified
Commit
3023fe20
authored
Feb 14, 2018
by
Todd Volkert
Committed by
GitHub
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add map-specific catch block in run_hot (#14689)
Fixes #14688
parent
556a33a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+4
-1
No files found.
packages/flutter_tools/lib/src/run_hot.dart
View file @
3023fe20
...
@@ -562,7 +562,7 @@ class HotRunner extends ResidentRunner {
...
@@ -562,7 +562,7 @@ class HotRunner extends ResidentRunner {
printTrace
(
'reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
);
printTrace
(
'reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
);
reloadMessage
=
'Reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
;
reloadMessage
=
'Reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
;
}
}
}
catch
(
error
,
st
)
{
}
on
Map
<
String
,
dynamic
>
catch
(
error
,
st
)
{
printError
(
'Hot reload failed:
$error
\n
$st
'
);
printError
(
'Hot reload failed:
$error
\n
$st
'
);
final
int
errorCode
=
error
[
'code'
];
final
int
errorCode
=
error
[
'code'
];
final
String
errorMessage
=
error
[
'message'
];
final
String
errorMessage
=
error
[
'message'
];
...
@@ -576,6 +576,9 @@ class HotRunner extends ResidentRunner {
...
@@ -576,6 +576,9 @@ class HotRunner extends ResidentRunner {
printError
(
'Hot reload failed:
\n
code =
$errorCode
\n
message =
$errorMessage
\n
$st
'
);
printError
(
'Hot reload failed:
\n
code =
$errorCode
\n
message =
$errorMessage
\n
$st
'
);
return
new
OperationResult
(
errorCode
,
errorMessage
);
return
new
OperationResult
(
errorCode
,
errorMessage
);
}
catch
(
error
,
st
)
{
printError
(
'Hot reload failed:
$error
\n
$st
'
);
return
new
OperationResult
(
1
,
'
$error
'
);
}
}
// Record time it took for the VM to reload the sources.
// Record time it took for the VM to reload the sources.
_addBenchmarkData
(
'hotReloadVMReloadMilliseconds'
,
_addBenchmarkData
(
'hotReloadVMReloadMilliseconds'
,
...
...
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