Renamed method in ExceptionUtil
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user