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

Commit 6e76ee9

Browse files
committed
Error text fix
1 parent 814ed86 commit 6e76ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/PermissionsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function actionAddRelation($name)
146146
Yii::$app->session->setFlash('warning', $errors ? reset($errors) : 'Some error occured.');
147147
}
148148
} catch (\Exception $e) {
149-
Yii::$app->session->setFlash('warning', 'Hierarchy error');
149+
Yii::$app->session->setFlash('warning', 'Relations can\'t be added because of hierarchy loop or impossible nesting.');
150150
}
151151
}
152152

0 commit comments

Comments
 (0)