Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
d1e9c348
Commit
d1e9c348
authored
13 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
don't write an error to console if run.js for the particular server doesn't exist (not an error)
parent
05e047a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run.js
+6
-3
6 additions, 3 deletions
run.js
with
6 additions
and
3 deletions
run.js
+
6
−
3
View file @
d1e9c348
...
...
@@ -132,10 +132,13 @@ dirs.forEach(function(dirObj) {
var
handlerPath
=
path
.
join
(
dirObj
.
path
,
"
server
"
,
"
run.js
"
);
var
handler
=
undefined
;
try
{
fs
.
statSync
(
handlerPath
).
isFile
();
handler
=
require
(
handlerPath
).
handler
;
var
runJSExists
=
false
;
try
{
runJSExists
=
fs
.
statSync
(
handlerPath
).
isFile
()
}
catch
(
e
)
{};
if
(
runJSExists
)
{
handler
=
require
(
handlerPath
).
handler
;
}
}
catch
(
e
)
{
console
.
log
(
"
Error
start
ing
up
"
+
dirObj
+
"
:
"
+
e
);
console
.
log
(
"
Error
load
ing
"
+
handlerPath
+
"
:
"
+
e
);
}
var
so
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment