<commit_before>export const APIFY_CALL_ERROR_NAME = 'APIFY_CALL_ERROR';
export const APIFY_CALL_ERROR_MESSAGE = 'Apify.call() wasn\'t succeed';

/**
 * @typedef {Object} ApifyCallError
 * @property {String} message=Apify.call()&nbsp;wasn't&nbsp;succeed
 * @property {String} name=APIFY_CALL_ERROR
 * @property {Object} run Object of the failed run.
 */
export class ApifyCallError extends Error {
    constructor(run) {
        super(APIFY_CALL_ERROR_MESSAGE);
        this.name = APIFY_CALL_ERROR_NAME;
        this.run = run;

        Error.captureStackTrace(this, ApifyCallError);
    }
}<commit_msg>Better error text for ApifyCallError (#74)<commit_after>export const APIFY_CALL_ERROR_NAME = 'ApifyCallError';

/**
 * @typedef {Object} ApifyCallError
 * @property {String} message=Apify.call()&nbsp;wasn't&nbsp;succeed
 * @property {String} name=APIFY_CALL_ERROR
 * @property {Object} run Object of the failed run.
 */
export class ApifyCallError extends Error {
    constructor(run) {
        super(`The act run invoked by Apify.call() did not succeed (run ID: ${run.id})`);
        this.name = APIFY_CALL_ERROR_NAME;
        this.run = run;

        Error.captureStackTrace(this, ApifyCallError);
    }
}
{'fraction_non_alphanumeric': 0.11735537190082644, 'fraction_numerical': 0.001652892561983471, 'mean_word_length': 4.31140350877193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3983855', 'n_tokens_mistral': 402, 'n_tokens_neox': 382, 'n_words': 90}