print stack traces from the analysis server (#4507)
This commit is contained in:
parent
ffde6777fc
commit
b5c8f2a43f
@ -553,7 +553,11 @@ class AnalysisServer {
|
|||||||
_handleServerError(response['params']);
|
_handleServerError(response['params']);
|
||||||
}
|
}
|
||||||
} else if (response['error'] != null) {
|
} else if (response['error'] != null) {
|
||||||
printError('Error from the analysis server: ${response['error']['message']}');
|
// Fields are 'code', 'message', and 'stackTrace'.
|
||||||
|
Map<String, dynamic> error = response['error'];
|
||||||
|
printError('Error response from the server: ${error['code']} ${error['message']}');
|
||||||
|
if (error['stackTrace'] != null)
|
||||||
|
printError(error['stackTrace']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -566,8 +570,11 @@ class AnalysisServer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _handleServerError(Map<String, dynamic> errorInfo) {
|
void _handleServerError(Map<String, dynamic> error) {
|
||||||
printError('Error from the analysis server: ${errorInfo['message']}');
|
// Fields are 'isFatal', 'message', and 'stackTrace'.
|
||||||
|
printError('Error from the analysis server: ${error['message']}');
|
||||||
|
if (error['stackTrace'] != null)
|
||||||
|
printError(error['stackTrace']);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _handleAnalysisIssues(Map<String, dynamic> issueInfo) {
|
void _handleAnalysisIssues(Map<String, dynamic> issueInfo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user