efficiency and exception change
This commit is contained in:
parent
4048c21c1f
commit
88212ff79b
32 changed files with 121 additions and 124 deletions
|
@ -19,7 +19,7 @@ export default abstract class RolePermissionService {
|
|||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("permissions not found by role");
|
||||
throw new InternalException("permissions not found by role", err);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ export default abstract class RolePermissionService {
|
|||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("permissions not found by roles");
|
||||
throw new InternalException("permissions not found by roles", err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue