mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added error logging for errors occuring during CSV import
no issue - CSV import uses direct API calls which skips through logging error. This additional code should catch and record any internal errors
This commit is contained in:
parent
69ed7cd23f
commit
e57f7219e5
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ const members = {
|
|||
if (inspection.reason() instanceof common.errors.ValidationError) {
|
||||
duplicates = duplicates + 1;
|
||||
} else {
|
||||
// NOTE: if the error happens as a result of pure API call it doesn't get logged anywhere
|
||||
// for this reason we have to make sure any unexpected errors are logged here
|
||||
common.logging.error(inspection.reason());
|
||||
invalid = invalid + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue