summaryrefslogtreecommitdiffstats
path: root/apps/user_migrate/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_migrate/admin.php')
-rw-r--r--apps/user_migrate/admin.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/apps/user_migrate/admin.php b/apps/user_migrate/admin.php
index c1afb0aed4f..1c4894c0f22 100644
--- a/apps/user_migrate/admin.php
+++ b/apps/user_migrate/admin.php
@@ -40,8 +40,22 @@ if (isset($_POST['user_import'])) {
exit();
}
- if( !OC_Migrate::import( $to, 'user' ) ){
+ if( !$appsstatus = OC_Migrate::import( $to, 'user' ) ){
die( 'failed to to import' );
+ } else {
+ // Check import status
+ foreach( $appsstatus as $app => $status ){
+ if( $status != 'true' ){
+ // It failed for some reason
+ if( $status == 'notsupported' ){
+ $notsupported[] = $app;
+ } else if( !$status ){
+ $failed[] = $app;
+ }
+ }
+ }
+ die(print_r($notsupported));
+ die( 'Some apps failed to import, or were not supported.' );
}