@@ -185,7 +185,6 @@ public void validate(FailureCollector collector, @Nullable OAuthInfo oAuthInfo)
185185 queryDescriptor = SalesforceQueryParser .getObjectDescriptorFromQuery (query );
186186 } catch (SOQLParsingException e ) {
187187 collector .addFailure (String .format ("Invalid SOQL query '%s' : %s" , query , e .getMessage ()), null )
188- .withStacktrace (e .getStackTrace ())
189188 .withConfigProperty (SalesforceSourceConstants .PROPERTY_QUERY );
190189 throw collector .getOrThrowException ();
191190 }
@@ -255,8 +254,7 @@ private void validateCompoundFields(String sObjectName, List<String> fieldNames,
255254 String errorMessage = SalesforceConnectionUtil .getSalesforceErrorMessageFromException (e );
256255 collector .addFailure (
257256 String .format ("Cannot establish connection to Salesforce to describe SObject: '%s' with error %s" ,
258- sObjectName , errorMessage ), null )
259- .withStacktrace (e .getStackTrace ());
257+ sObjectName , errorMessage ), null );
260258 }
261259 }
262260
@@ -353,7 +351,7 @@ private boolean isCustomObject(String sObjectName, FailureCollector collector, O
353351 } catch (ConnectionException e ) {
354352 String message = SalesforceConnectionUtil .getSalesforceErrorMessageFromException (e );
355353 collector .addFailure (String .format ("There was issue communicating with Salesforce due to error: %s" , message ),
356- null ). withStacktrace ( e . getStackTrace ()) ;
354+ null );
357355 throw collector .getOrThrowException ();
358356 }
359357 }
0 commit comments