|
|
@@ -474,7 +474,9 @@ module.exports = (crowi) => {
|
|
|
|
|
|
try {
|
|
|
const fromPage = await Page.findByPath(fromPath);
|
|
|
- if (fromPage == null) throw new Error('fromPage is Null');
|
|
|
+ if (fromPage == null) {
|
|
|
+ return res.apiv3Err(new ErrorV3('fromPage is Null'), 400);
|
|
|
+ }
|
|
|
|
|
|
const fromPageDescendants = await Page.findManageableListWithDescendants(fromPage, req.user);
|
|
|
|