Skip to content

Commit 805aad4

Browse files
TheSpacyCatBenediktSeidl
authored andcommitted
Clarify select error message
In realistic setups, the graph select would display a rather unspecific error message by default. It has been replaced by a more understandable message CMK-12679 (internal ticket id)
1 parent 26a393a commit 805aad4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ui/components.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ export const CheckMkGenericAsyncSelect = function <Value extends string | (strin
9696
} catch (e) {
9797
const error = e as Error;
9898
if (error && error.message) {
99-
setAutocompleteError(error.message);
99+
if (error.message === 'Sorry, you cannot create combined graphs for more than 100 objects') {
100+
setAutocompleteError(
101+
'Result size limit reached. Please add more filters to reduce the number of elements in the result.'
102+
);
103+
} else {
104+
setAutocompleteError(error.message);
105+
}
100106
}
101107
throw error;
102108
}

0 commit comments

Comments
 (0)