Drop `isRelayUserError`
const createUserError = (format: string, ...args: any): Error => {
let index = 0;
const formatted = format.replace(/%s/g, match => args[index++]);
- const err = new Error(formatted);
- (err: any).isRelayUserError = true;
- return err;
+ return new Error(formatted);
};
module.exports = {createUserError};
