Do you mean we should check the variable inside `base.js` at the beginning of the `add_pretty_errors` function?