Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulCatalinas committed Nov 28, 2024
2 parents 6259c34 + e31d96d commit 7147480
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"markdownlint.config": {
"default": true,
"MD029": false
}
},
"cSpell.words": [
"Checkin",
"userinput"
]
}
2 changes: 1 addition & 1 deletion internal/constants/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var ERROR_MESSAGES = map[string]string{

"ConfigFilesCreate": "An error occurred while creating configuration files. Please try again later, if the error persists please report it on " + ISSUES + ".",

"PublishConfirmation": "An error occurred while confirming npm publication. Please try again later, if the error persists, please report it on" + ISSUES + ".",
"ShouldPublishToNpm": "An error occurred while confirming npm publication. Please try again later, if the error persists, please report it on" + ISSUES + ".",

"NpmIgnoreWrite": "An error occurred while writing to the '.npmignore' file. Please try again later, if the error persists please report it on " + ISSUES + ".",

Expand Down
10 changes: 6 additions & 4 deletions internal/utils/user-os.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package utils
import (
"os"
"strings"

"github.com/RaulCatalinas/HuskyBC/internal/enums"
)

func createFolder(name string) {
Expand All @@ -11,7 +13,7 @@ func createFolder(name string) {
message := "Created folder " + name

WriteMessage(WriteMessageProps{
Type: "info",
Type: enums.MessageTypeInfo,
Message: message,
})
}
Expand All @@ -22,7 +24,7 @@ func createFile(name string) {
message := "Created file " + name

WriteMessage(WriteMessageProps{
Type: "info",
Type: enums.MessageTypeInfo,
Message: message,
})
}
Expand All @@ -32,15 +34,15 @@ func CheckinFolderOrFile(path string, isFolder bool) {

if err != nil {
WriteMessage(WriteMessageProps{
Type: "error",
Type: enums.MessageTypeError,
Message: GetErrorMessage("CheckingFolderOrFile"),
})

if os.IsNotExist(err) {
errorMessage := GetErrorMessage("NotFound")

WriteMessage(WriteMessageProps{
Type: "error",
Type: enums.MessageTypeError,
Message: strings.Replace(errorMessage, "{fileName}", path, -1),
})

Expand Down

0 comments on commit 7147480

Please sign in to comment.