fix(ses): makeError can now narrow return type (#3309)