Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8613e4d5
...
8613e4d572f5c9103cdf894d76797369d06bcf0e
authored
2013-12-09 17:56:08 -0700
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update dotNET executable to return the exit code of the casper instance
1 parent
8ebfa310
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
bin/casperjs.exe
src/casperjs.cs
bin/casperjs.exe
View file @
8613e4d
No preview for this file type
src/casperjs.cs
View file @
8613e4d
...
...
@@ -97,7 +97,7 @@ class slimerjs : engine {
}
class
casperjs
{
static
void
Main
(
string
[]
args
)
{
static
int
Main
(
string
[]
args
)
{
var
SUPPORTED_ENGINES
=
new
Dictionary
<
string
,
engine
>
{
{
"phantomjs"
,
new
phantomjs
()},
{
"slimerjs"
,
new
slimerjs
()}
...
...
@@ -167,9 +167,10 @@ class casperjs {
string
line
=
p
.
StandardOutput
.
ReadLine
();
Console
.
WriteLine
(
line
);
}
return
p
.
ExitCode
;
}
catch
(
Win32Exception
e
)
{
Console
.
WriteLine
(
"Fatal: "
+
e
.
Message
+
"; did you install "
+
ENGINE
+
"?"
);
Environment
.
Exit
(
1
)
;
return
-
1
;
}
}
}
...
...
Please
register
or
sign in
to post a comment