mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
Add: Console error when fail to validate path
This commit is contained in:
@@ -120,6 +120,7 @@ async function FilePage({ params }: Props) {
|
||||
|
||||
if (!pathValidation.success) {
|
||||
const errorData = pathValidation as API_Error;
|
||||
console.error(errorData);
|
||||
const payload = handleError(errorData);
|
||||
throw new Error(payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user