Update ownership error check
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 21 Aug 2018 08:03:02 +0000 (10:03 +0200)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 21 Aug 2018 08:03:02 +0000 (10:03 +0200)
Feature #13831

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/common/api/common-resource-service.ts

index 53084b4bb5e0f3ab00c2a52e94130a4c2c50368e..2c9bfb51679f16bef721b4499f0cf00181ddc3f4 100644 (file)
@@ -119,7 +119,7 @@ export const getCommonResourceServiceError = (errorResponse: any) => {
         switch (true) {
             case /UniqueViolation/.test(error):
                 return CommonResourceServiceError.UNIQUE_VIOLATION;
-            case /Owner uuid has an ownership cycle/.test(error):
+            case /ownership cycle/.test(error):
                 return CommonResourceServiceError.OWNERSHIP_CYCLE;
             default:
                 return CommonResourceServiceError.UNKNOWN;