Skip to content

Commit

Permalink
Merge pull request #748 from mikepenz/fix/735
Browse files Browse the repository at this point in the history
Adjust error message on import failure
  • Loading branch information
mikepenz committed Nov 26, 2023
2 parents 9775976 + e53a03a commit 37aeccd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 1 addition & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,7 @@ export class Processor {
completed++
return result
} catch (error: any /* eslint-disable-line @typescript-eslint/no-explicit-any */) {
core.warning(`🔥 Failed to import: ${file} (${error})`)

if (error.response) {
core.error(`-- 🔥 Failed to import: ${file} (${error.response``})`)
}

core.error(`🔥 Failed to import: ${file} (${JSON.stringify(error)})`)
failed++

if (!importOptions.continueOnImportError) {
Expand Down

0 comments on commit 37aeccd

Please sign in to comment.