projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e66ef3
)
tests/TreeBuilder.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 25 Sep 2014 11:19:53 +0000
(19:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 25 Sep 2014 11:19:53 +0000
(19:19 +0800)
tests/TreeBuilder.vala
patch
|
blob
|
history
diff --git
a/tests/TreeBuilder.vala
b/tests/TreeBuilder.vala
index
7db435b
..
a3ba07e
100644
(file)
--- a/
tests/TreeBuilder.vala
+++ b/
tests/TreeBuilder.vala
@@
-2,7
+2,18
@@
// valac TreeBuilder.vala --pkg libvala-0.24 --pkg posix -o /tmp/treebuilder
public class MyReport : Vala.Report {
-
+
+ public overide void err (Vala.SourceReference? source, string message) {
+ errors++;
+ if (source == null) {
+ stderr.printf ("My error: %s\n", message);
+ } else {
+ stderr.printf ("%s: My error: %s\n", source.to_string (), message);
+ if (verbose_errors) {
+ this.report_source (source);
+ }
+ }
+ }
}