refactor color system to be separate from models, also move errors out of models.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"git.aiterp.net/lucifer/new-server/app/config"
|
||||
"git.aiterp.net/lucifer/new-server/internal/color"
|
||||
"git.aiterp.net/lucifer/new-server/models"
|
||||
"log"
|
||||
"os"
|
||||
@@ -124,7 +125,7 @@ func main() {
|
||||
continue
|
||||
}
|
||||
|
||||
color, err := models.ParseColorValue(tokens[2])
|
||||
color, err := color.Parse(tokens[2])
|
||||
if err != nil {
|
||||
_, _ = fmt.Fprintln(os.Stderr, "Invalid color:", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user