Throw NotFound Exception when static file is not found
This commit is contained in:
@@ -82,6 +82,11 @@ namespace VAR.WebFormsCore.Code
|
||||
StaticFileHelper.ResponseStaticFile(context, filePath);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: FrmNotFound
|
||||
throw new Exception("NotFound");
|
||||
}
|
||||
}
|
||||
|
||||
IHttpHandler handler = GetHandler(file);
|
||||
|
||||
Reference in New Issue
Block a user