1. akshell
  2. simple-blog

Commits

korenyushkin  committed 14e778c

The previous commit was a Failure.

  • Participants
  • Parent commits 871d12b
  • Branches default

Comments (0)

Files changed (1)

File __main__.js

View file
  • Ignore whitespace
       if (request.user != author)
         throw Forbidden();
       if (!request.post.title)
-        throw UserError('Empty title');
+        throw Failure('Empty title');
       var post = rv.Post.insert(
         {
           author: author,
       if (!request.user)
         throw Forbidden('Login first');
       if (!request.post.text)
-        throw UserError('Empty comment text');
+        throw Failure('Empty comment text');
       rv.Comment.insert(
         {
           post: this._post.id,