This commit is contained in:
@@ -79,7 +79,8 @@ export function failureFooter(failures: ProfileFailure[]): string {
|
||||
}
|
||||
return `> Tried: ${failures
|
||||
.map(
|
||||
({ type, model, reason }) => `\`${profileName(type)}\` · \`${model}\` (${toMessage(reason)})`,
|
||||
({ type, model, reason }) =>
|
||||
`\`${profileName(type)}\` · \`${model}\` (${toMessage(reason)})`,
|
||||
)
|
||||
.join(", ")}`;
|
||||
}
|
||||
@@ -100,7 +101,9 @@ export async function runProfiles<T, P extends ProfileIdentity>(
|
||||
if (reason === "FAILED" || index === profiles.length - 1) {
|
||||
throw error;
|
||||
}
|
||||
console.error(`${profile.type} ${toMessage(reason)}; trying next profile`);
|
||||
console.error(
|
||||
`${profile.type} ${toMessage(reason)}; trying next profile`,
|
||||
);
|
||||
}
|
||||
}
|
||||
throw new Error("profiles must contain at least one profile");
|
||||
|
||||
Reference in New Issue
Block a user