Changed regex to return a errored file