Finally fixing the real cause for the "No node exists with id '0'" error
This commit is contained in:
@@ -395,7 +395,8 @@ namespace OurUmbraco.Wiki.BusinessLogic
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException(string.Format("No node exists with id '{0}'", Id));
|
||||
HttpContext.Current.Response.StatusCode = 404;
|
||||
HttpContext.Current.Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user