Skip to content

Commit 3e25340

Browse files
author
Blair McKenzie
committed
fix to error catching
1 parent 7a57073 commit 3e25340

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/lib/cloudsearch.cfc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,11 @@ component {
892892
if (arrayLen(aSubQuery) gt 1){
893893
return repeatstring(" ",arguments.indent) & "(or " & chr(10) & arrayToList(aSubQuery,chr(10)) & chr(10) & repeatstring(" ",arguments.indent) & ")";
894894
}
895-
else {try{
895+
else if (arraylen(aSubQuery)) {
896896
return aSubQuery[1];
897-
}catch(any e){ dump(arguments);abort; }
897+
}
898+
else {
899+
throw(message="No query generated from arguments", detail=serializeJSON(arguments));
898900
}
899901
}
900902

0 commit comments

Comments
 (0)