Update error output for python and dotnet scripts, and update makefile to requir…
…e dotnet framework 3.5
Showing
4 changed files
with
3 additions
and
4 deletions
... | @@ -13,7 +13,7 @@ selftest: | ... | @@ -13,7 +13,7 @@ selftest: |
13 | bin/casperjs selftest | 13 | bin/casperjs selftest |
14 | 14 | ||
15 | compile-dotNET: | 15 | compile-dotNET: |
16 | mcs -out:bin/casperjs.exe src/casperjs.cs | 16 | mcs -langversion:3 -out:bin/casperjs.exe src/casperjs.cs |
17 | 17 | ||
18 | selftest-dotNET: | 18 | selftest-dotNET: |
19 | bin/casperjs.exe selftest | 19 | bin/casperjs.exe selftest | ... | ... |
... | @@ -128,5 +128,5 @@ CASPER_COMMAND.extend(CASPER_ARGS) | ... | @@ -128,5 +128,5 @@ CASPER_COMMAND.extend(CASPER_ARGS) |
128 | try: | 128 | try: |
129 | os.execvp(CASPER_COMMAND[0], CASPER_COMMAND) | 129 | os.execvp(CASPER_COMMAND[0], CASPER_COMMAND) |
130 | except OSError as err: | 130 | except OSError as err: |
131 | print('Fatal: %s; did you install phantomjs?' % err) | 131 | print('Fatal: %s; did you install %s?' % (err, ENGINE)) |
132 | sys.exit(1) | 132 | sys.exit(1) | ... | ... |
No preview for this file type
... | @@ -127,7 +127,6 @@ class casperjs { | ... | @@ -127,7 +127,6 @@ class casperjs { |
127 | Environment.Exit(1); | 127 | Environment.Exit(1); |
128 | } | 128 | } |
129 | 129 | ||
130 | |||
131 | foreach(string arg in args) { | 130 | foreach(string arg in args) { |
132 | bool found = false; | 131 | bool found = false; |
133 | foreach(string native in ENGINE_NATIVE_ARGS) { | 132 | foreach(string native in ENGINE_NATIVE_ARGS) { |
... | @@ -168,7 +167,7 @@ class casperjs { | ... | @@ -168,7 +167,7 @@ class casperjs { |
168 | Console.WriteLine(line); | 167 | Console.WriteLine(line); |
169 | } | 168 | } |
170 | } catch(Win32Exception e) { | 169 | } catch(Win32Exception e) { |
171 | Console.WriteLine(e.Message); | 170 | Console.WriteLine("Fatal: " + e.Message + "; did you install " + ENGINE + "?"); |
172 | Environment.Exit(1); | 171 | Environment.Exit(1); |
173 | } | 172 | } |
174 | } | 173 | } | ... | ... |
-
Please register or sign in to post a comment