Throw NotFound Exception when static file is not found

This commit is contained in:
2021-07-07 21:54:12 +02:00
parent 7125b5a5bb
commit 25dca639e6

View File

@@ -82,6 +82,11 @@ namespace VAR.WebFormsCore.Code
StaticFileHelper.ResponseStaticFile(context, filePath);
return;
}
else
{
// TODO: FrmNotFound
throw new Exception("NotFound");
}
}
IHttpHandler handler = GetHandler(file);