Finally fixing the real cause for the "No node exists with id '0'" error

This commit is contained in:
Sebastiaan Janssen
2017-01-08 11:05:14 +01:00
parent 620e047b6f
commit 17c9e49341
+2 -1
View File
@@ -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();
}
}
}