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