Merge pull request #50 from AAMasters/develop

Tensors
This commit is contained in:
benme authored and GitHub committed 2019-07-03 10:50:28 -03:00
commit 3b43f840be
2 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -45,7 +45,7 @@ function newAppLoader() {
'StrategySpace/Workspace/FunctionLibraries/NodeDeleter.js',
'StrategySpace/Workspace/FunctionLibraries/ProtocolNode.js',
'StrategySpace/Workspace/FunctionLibraries/StringifyNode.js',
'StrategySpace/Workspace/FunctionLibraries/NodeChildren.js',
'Utilities/RoundedCornersBackground.js',
@@ -151,12 +151,12 @@ function newAppLoader() {
dashboard.start()
}
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] loadModules -> onRequired -> err = ' + err) }
if (ERROR_LOG === true) { logger.write('[ERROR] loadModules -> onRequired -> err = ' + err.stack) }
}
}
}
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] loadModules -> err = ' + err) }
if (ERROR_LOG === true) { logger.write('[ERROR] loadModules -> err = ' + err.stack) }
}
}
+5 -5
View File
@@ -48,7 +48,7 @@ function startHtttpServer () {
isHttpServerStarted = true
}
} catch (err) {
console.log('[ERROR] server -> startHtttpServer -> Error = ' + err)
console.log('[ERROR] server -> startHtttpServer -> Error = ' + err.stack)
}
}
@@ -260,7 +260,7 @@ function onBrowserRequest (request, response) {
respondWithContent(fileContent, response)
} catch (err) {
console.log('[ERROR] server -> onBrowserRequest -> File Not Found: ' + fileName + ' or Error = ' + err)
console.log('[ERROR] server -> onBrowserRequest -> File Not Found: ' + fileName + ' or Error = ' + err.stack)
}
}
} catch (err) {
@@ -319,7 +319,7 @@ function respondWithFile (fileName, response) {
// console.log("File Sent: " + fileName);
//
} catch (err) {
console.log('[ERROR] server -> respondWithFile -> onFileRead -> File Not Found: ' + fileName + ' or Error = ' + err)
console.log('[ERROR] server -> respondWithFile -> onFileRead -> File Not Found: ' + fileName + ' or Error = ' + err.stack)
returnEmptyArray()
}
}
@@ -347,11 +347,11 @@ function respondWithImage (fileName, response) {
response.writeHead(200, { 'Content-Type': 'image/png' })
response.end(file, 'binary')
} catch (err) {
console.log('[ERROR] server -> respondWithImage -> onFileRead -> File Not Found: ' + fileName + ' or Error = ' + err)
console.log('[ERROR] server -> respondWithImage -> onFileRead -> File Not Found: ' + fileName + ' or Error = ' + err.stack)
}
}
} catch (err) {
console.log('[ERROR] server -> respondWithImage -> err = ' + err)
console.log('[ERROR] server -> respondWithImage -> err = ' + err.stack)
}
}