Skip to content

Commit 8f26e64

Browse files
committed
move error/warning log to info
1 parent 26528b9 commit 8f26e64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hooks/custom/utils/pdf.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ export async function loadPdf(
119119
const pagesCount = pdf.getPages().length;
120120
return [false, pdf, pagesCount];
121121
} catch (e) {
122-
console.error(e);
123-
console.warn(
124-
"Attempted to interpret file as pdf, but error arose when splitting by pages. Reverting to non-split pdf handling path."
125-
);
122+
console.info("Loading PDF failed, so splitting is not enabled.");
126123
return [true, null, 0];
127124
}
128125
}

0 commit comments

Comments
 (0)