File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
src/Migration/Destinations Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -238,20 +238,16 @@ protected function import(array $resources, callable $callback): void
238238 default => throw new \Exception ('Invalid resource group ' ),
239239 };
240240 } catch (\Throwable $ e ) {
241- if ($ e ->getCode () === 409 ) {
242- $ resource ->setStatus (Resource::STATUS_SKIPPED , $ e ->getMessage ());
243- } else {
244- $ resource ->setStatus (Resource::STATUS_ERROR , $ e ->getMessage ());
245-
246- $ this ->addError (new Exception (
247- resourceName: $ resource ->getName (),
248- resourceGroup: $ resource ->getGroup (),
249- resourceId: $ resource ->getId (),
250- message: $ e ->getMessage (),
251- code: $ e ->getCode (),
252- previous: $ e
253- ));
254- }
241+ $ resource ->setStatus (Resource::STATUS_ERROR , $ e ->getMessage ());
242+
243+ $ this ->addError (new Exception (
244+ resourceName: $ resource ->getName (),
245+ resourceGroup: $ resource ->getGroup (),
246+ resourceId: $ resource ->getId (),
247+ message: $ e ->getMessage (),
248+ code: $ e ->getCode (),
249+ previous: $ e
250+ ));
255251
256252 $ responseResource = $ resource ;
257253 } finally {
You can’t perform that action at this time.
0 commit comments