summaryrefslogtreecommitdiff
path: root/os.go
diff options
context:
space:
mode:
Diffstat (limited to 'os.go')
-rw-r--r--os.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/os.go b/os.go
index 5a96516ea..d1923837e 100644
--- a/os.go
+++ b/os.go
@@ -76,14 +76,18 @@ func HandleCodeFetch(moduleSpecifier string, containingFile string) (out []byte)
return
}
- //println("HandleCodeFetch", "moduleSpecifier", moduleSpecifier,
- // "containingFile", containingFile, "filename", filename)
+ logDebug("HandleCodeFetch moduleSpecifier %s containingFile %s filename %s",
+ moduleSpecifier, containingFile, filename)
if isRemote(moduleName) {
sourceCodeBuf, err = FetchRemoteSource(moduleName, filename)
} else if strings.HasPrefix(moduleName, assetPrefix) {
f := strings.TrimPrefix(moduleName, assetPrefix)
sourceCodeBuf, err = Asset("dist/" + f)
+ if err != nil {
+ logDebug("%s Asset doesn't exist. Return without error", moduleName)
+ err = nil
+ }
} else {
assert(moduleName == filename,
"if a module isn't remote, it should have the same filename")