-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pretty errors as default message reporting (#11587)
* Switch to pretty errors by default * Avoid 'Error: : ' in args errors * Do not eagerly report --cwd errors * [tests] Lazy migration of misc tests to default pretty errors * [tests] Don't use pretty errors for display tests * [tests] More misc tests
- Loading branch information
Showing
12 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
--next | ||
|
||
-D message.reporting=classic | ||
--main Main | ||
--swf-lib bin/lib.swc | ||
--swf bin/test.swf | ||
--swf bin/test.swf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ NoRudy | |
|
||
--next | ||
|
||
-D message.reporting=classic | ||
--main Main | ||
--java-lib no-rudy.jar | ||
--jvm run.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
macro function test() { | ||
trace(Sys.args()); | ||
trace(filterArgs(Sys.args())); | ||
return macro null; | ||
} | ||
|
||
function main() { | ||
test(); | ||
trace(Sys.args()); | ||
trace(filterArgs(Sys.args())); | ||
} | ||
|
||
function filterArgs(args:Array<String>):Array<String> { | ||
if (args.length < 2) return args; | ||
// We're currently prepending that to all tests while moving to pretty errors by default | ||
if (args[0] == "-D" && args[1] == "message.reporting=classic") return args.slice(2); | ||
return args; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Error: : --custom-target cannot use reserved name js. | ||
Error: --custom-target cannot use reserved name js. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Error: Invalid directory: unexistant | ||
Error: Invalid directory: unexistant. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters