Skip to content

Commit

Permalink
exception message about "Implementation restriction" does not always …
Browse files Browse the repository at this point in the history
…end with colon ':'
  • Loading branch information
neowit committed Sep 14, 2013
1 parent 96c4ee3 commit c927b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/neowit/apex/backup/BackupSObject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class BackupSObject(connection:PartnerConnection, objectApiName:String ) extends
} catch {
case ex: InvalidFieldFault => logger.warn("" + ex); if (currentMode.allowGlobalWhere) logger.warn("Will try once again without global.where")
case ex: ApiQueryFault =>
if (ex.getExceptionMessage.indexOf("Implementation restriction:") >=0) {
if (ex.getExceptionMessage.indexOf("Implementation restriction") >=0) {
logger.warn("Object " + objectApiName +" can not be queried in batch mode due to Implementation restriction")
logger.warn("\t" + ex.getExceptionMessage)
} else {
Expand Down

0 comments on commit c927b0f

Please sign in to comment.