From 3781627a52f989bccfa76468fe158357ba064ba6 Mon Sep 17 00:00:00 2001 From: Christian Hanvey Date: Fri, 7 Dec 2012 11:26:10 +1100 Subject: [PATCH] Add feedback for mid-import errors Reports how many resources were successfully imported in the case of a import failing in the middle. --- core/components/importx/processors/startimport.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/importx/processors/startimport.php b/core/components/importx/processors/startimport.php index 3b37618..1caab15 100644 --- a/core/components/importx/processors/startimport.php +++ b/core/components/importx/processors/startimport.php @@ -54,6 +54,7 @@ } else { $errorMessage = $modx->lexicon('importx.err.savefailed')."\n".print_r($response->getMessage(),true); } + $this->modx->importx->log('warn',$resourceCount.' of '.count($lines).' resources were imported successfully'); $this->modx->importx->log('error',$errorMessage); return $this->modx->importx->log('complete',''); } else {