Skip to content

Commit c247a81

Browse files
author
Josh Goldberg
authored
Restricted missing package message checking to first 2 lines (#1046)
1 parent d768c07 commit c247a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/findOriginalConfigurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const findOriginalConfigurations = async (
117117

118118
const getMissingPackageMessage = (error: Error) => {
119119
const match = /(Cannot find module|could not require|couldn't find the plugin) ([a-zA-Z0-9-_"'@/]+)/.exec(
120-
error.message,
120+
error.message.split('\n').slice(0, 2).join('\n'),
121121
);
122122
if (match === null) {
123123
return undefined;

0 commit comments

Comments
 (0)