mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Added error message for CreatePost/CreateReply
This commit is contained in:
parent
e004971d8a
commit
4f5cd7a878
@ -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!")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user