Skip to content

Commit 89f761e

Browse files
committedFeb 18, 2025·
Refactor importActorProfile function to streamline error handling and remove redundant console logs
1 parent 1666668 commit 89f761e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,7 @@ export async function importActorProfile(
230230
console?.warn(`Unsupported file type: ${fileName}, skipping...`)
231231
}
232232
} catch (error: any) {
233-
const errorMessage = `Error processing file ${fileName}: ${error.message}`
234-
if (onError) {
235-
onError(new Error(errorMessage), { fileName })
236-
} else {
237-
reject(new Error(errorMessage))
238-
}
233+
next(error)
239234
} finally {
240235
next() // Always continue
241236
}

0 commit comments

Comments
 (0)
Please sign in to comment.