Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 8632812

Browse files
committed
Import exception class.
1 parent 9562f11 commit 8632812

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/Import.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Adldap\Laravel\Commands;
44

5+
use Exception;
56
use Adldap\Models\User;
67
use Adldap\Laravel\Traits\UsesAdldap;
78
use Illuminate\Console\Command;
@@ -120,7 +121,7 @@ public function import(array $users = [])
120121
}
121122

122123
$imported++;
123-
} catch (\Exception $e) {
124+
} catch (Exception $e) {
124125
// Log the unsuccessful import.
125126
if ($this->isLogging()) {
126127
logger()->error("Unable to import user {$user->getCommonName()}. {$e->getMessage()}");

0 commit comments

Comments
 (0)