From c2ea61c82ee90beef1ddc7ce16ceced6d329a866 Mon Sep 17 00:00:00 2001 From: don Piotr Talarczyk Date: Tue, 22 Oct 2024 20:09:43 +0200 Subject: [PATCH] Fix two error messages: user create and user create --admin --- app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 7630254..3b4756a 100644 --- a/app.go +++ b/app.go @@ -892,12 +892,12 @@ func CreateUser(apper Apper, username, password string, isAdmin bool) error { if isAdmin { // Abort if trying to create admin user, but one already exists if firstUser != nil { - return fmt.Errorf("Admin user already exists (%s). Create a regular user with: writefreely --create-user", firstUser.Username) + return fmt.Errorf("Admin user already exists (%s). Create a regular user with: writefreely user create [USER]:[PASSWORD]", firstUser.Username) } } else { // Abort if trying to create regular user, but no admin exists yet if firstUser == nil { - return fmt.Errorf("No admin user exists yet. Create an admin first with: writefreely --create-admin") + return fmt.Errorf("No admin user exists yet. Create an admin first with: writefreely user create --admin [USER]:[PASSWORD]") } }