Server: export the fail Error function