Skip to content

Commit 37b8ce0

Browse files
committed
#286 package errors should be ignored in murex-package list
1 parent 089b97b commit 37b8ce0

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const (
1515
version = "%d.%d.%d"
1616
Major = 6
1717
Minor = 2
18-
Revision = 1000
18+
Revision = 2000
1919
)
2020

2121
// Copyright is the copyright owner string

builtins/core/modules/cmd-list.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"strings"
88

99
"github.com/lmorg/murex/config/profile"
10-
"github.com/lmorg/murex/debug"
1110
"github.com/lmorg/murex/lang"
1211
"github.com/lmorg/murex/lang/types"
1312
)
@@ -101,7 +100,6 @@ func listModulesEnDis(p *lang.Process, enabled bool) (map[string]string, error)
101100

102101
// only read directories
103102
if !f.IsDir() {
104-
debug.Log("File not directory:", pack)
105103
continue
106104
}
107105

@@ -110,10 +108,7 @@ func listModulesEnDis(p *lang.Process, enabled bool) (map[string]string, error)
110108
continue
111109
}
112110

113-
mods, err := profile.LoadPackage(pack, false)
114-
if err != nil {
115-
write(p, "{RED}%s{RESET}", err.Error())
116-
}
111+
mods, _ := profile.LoadPackage(pack, false)
117112

118113
// these should NOT equate ;)
119114
if strings.HasSuffix(f.Name(), profile.IgnoredExt) != enabled {
@@ -160,7 +155,6 @@ func listPackages(p *lang.Process) error {
160155
return err
161156
}
162157
if !f.IsDir() {
163-
debug.Log("File not directory:", pack)
164158
continue
165159
}
166160

utils/cache/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func read(namespace string, key string, ptr any) bool {
3131

3232
if err := json.Unmarshal(b, ptr); err != nil {
3333
if debug.Enabled {
34-
os.Stderr.WriteString(fmt.Sprintf("Error unmarshalling cache in "+namespace, err))
34+
os.Stderr.WriteString(fmt.Sprintf("!!! error unmarshalling cache in '%s': %s !!!\n!!! cache value: '%s' !!!", namespace, err.Error(), string(b)))
3535
}
3636
return false
3737
}

version.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)