Skip to content

Commit

Permalink
error message rename + formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pgajek2 committed Sep 24, 2023
1 parent 020a518 commit c1d6843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions force-app/main/default/classes/SOQL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1312,10 +1312,10 @@ public virtual inherited sharing class SOQL implements Queryable {

public override String toString() {
if (skipBinding) {
return String.format(wrapper, new List<String> { field + ' ' + comperator + ' ' + value });
return String.format(wrapper, new List<String>{ field + ' ' + comperator + ' ' + value });
}

return String.format(wrapper, new List<String> { field + ' ' + comperator + ' :' + binder.bind(value) });
return String.format(wrapper, new List<String>{ field + ' ' + comperator + ' :' + binder.bind(value) });
}
}

Expand Down Expand Up @@ -1369,7 +1369,7 @@ public virtual inherited sharing class SOQL implements Queryable {
public void setGroupByFunction(String newGroupByFunction) {
if (String.isNotEmpty(groupByFunction) && groupByFunction != newGroupByFunction) {
QueryException e = new QueryException();
e.setMessage('You cant combine GROUP BY, GROUP BY ROLLUP and GROUP BY CUBE syntax in the same statement.');
e.setMessage('You cant use GROUP BY, GROUP BY ROLLUP and GROUP BY CUBE in the same query.');
throw e;
}
this.groupByFunction = newGroupByFunction;
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/classes/SOQL_Test.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ private class SOQL_Test {

// Verify
Assert.areEqual(
'You cant combine GROUP BY, GROUP BY ROLLUP and GROUP BY CUBE syntax in the same statement.',
'You cant use GROUP BY, GROUP BY ROLLUP and GROUP BY CUBE in the same query.',
queryException.getMessage()
);
}
Expand Down

0 comments on commit c1d6843

Please sign in to comment.