Renamed method in ExceptionUtil

This commit is contained in:
nsingh
2017-01-23 10:56:40 -08:00
parent 46818d3462
commit 2e3f4f8cb8
2 changed files with 3 additions and 3 deletions

View File

@@ -68,9 +68,9 @@ public class ExceptionUtil {
/**
*
* @param e
* @return a nicer message suitable for display to the user
* @return only the message in the error without any appended information
*/
public static String getMessageForUserDisplay(Throwable e) {
public static String getMessageOnly(Throwable e) {
// The message of nested exception is usually more interesting than the
// one on top.
Throwable cause = getDeepestCause(e);

View File

@@ -155,7 +155,7 @@ public class YTypeAssistContext extends AbstractYamlAssistContext {
values = typeUtil.getHintValues(type, getSchemaContext());
} catch (Exception e) {
DocumentEdits edits = new DocumentEdits(doc.getDocument());
return ImmutableList.of(completionFactory().errorMessage(ExceptionUtil.getMessageForUserDisplay(e), query, type, edits, typeUtil));
return ImmutableList.of(completionFactory().errorMessage(ExceptionUtil.getMessageOnly(e), query, type, edits, typeUtil));
}
if (values!=null) {
ArrayList<ICompletionProposal> completions = new ArrayList<>();