function formatError formatError(e: Error,name?: Stringy,) Parameters e: Error optional name: Stringy Return Type