1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-06-09 06:20:43 +00:00

Added error message for CreatePost/CreateReply

This commit is contained in:
マリウス 2023-01-02 23:47:52 -05:00
parent e004971d8a
commit 4f5cd7a878
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -2,6 +2,7 @@ package hackernews
import (
"context"
"errors"
"strconv"
"time"
@ -194,9 +195,9 @@ func (sys *System) loadReplies(replies *[]reply.Reply) error {
}
func (sys *System) CreatePost(p *post.Post) error {
return nil
return errors.New("Sorry, this feature isn't available yet for Hacker News!")
}
func (sys *System) CreateReply(r *reply.Reply) error {
return nil
return errors.New("Sorry, this feature isn't available yet for Hacker News!")
}