Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Log real errors as they happen in batch helper (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleonard committed Apr 16, 2021
1 parent 8b201fa commit 7f7455f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -1,4 +1,5 @@
import { ErrorWithProfileId } from "@grouparoo/core";
import { log } from "actionhero";

export interface MethodNormalizeGroupName {
// mess with the names of groups (tags with no spaces, for example)
Expand Down Expand Up @@ -80,6 +81,7 @@ export function checkErrors(
}
error.profileId = exportedProfile.profileId;
errors.push(error);
log(error?.stack || error, "error");
} else if (skippedMessage) {
errors = errors || [];
const skip = <ErrorWithProfileId>new Error(skippedMessage);
Expand Down
Expand Up @@ -379,6 +379,7 @@ function processResult(result, identifier, type: ResultType) {
id = "doesntmatter";
}
if (!success || errors.length > 0) {
// console.log("SDFC error:", JSON.stringify(errors));
if (
errors.length === 1 &&
errors[0].statusCode === "CANNOT_UPDATE_CONVERTED_LEAD"
Expand Down

0 comments on commit 7f7455f

Please sign in to comment.