Update ownership error check
[arvados-workbench2.git] / 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;