Skip to content

Commit

Permalink
fix: use afterPageDelete in message and code properties
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Aug 14, 2023
1 parent 1fa2a0e commit c188c47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const onPageAfterDeleteHook = (context: PbAcoContext) => {
return;
}
throw WebinyError.from(error, {
message: "Error while executing onPageAfterDeleteHook hook",
message: "Error while executing onPageAfterDeleteHook hook.",
code: "ACO_AFTER_PAGE_DELETE_HOOK"
});
}
Expand All @@ -37,8 +37,8 @@ export const onPageAfterDeleteHook = (context: PbAcoContext) => {
}
} catch (error) {
throw WebinyError.from(error, {
message: "Error while executing onPageAfterUpdateHook hook",
code: "ACO_AFTER_PAGE_UPDATE_HOOK"
message: "Error while executing onPageAfterDeleteHook hook.",
code: "ACO_AFTER_PAGE_DELETE_HOOK"
});
}
});
Expand Down

0 comments on commit c188c47

Please sign in to comment.