nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: improve messages (and sometime location) of errors and warnings
[nit.git]
/
src
/
platform
/
app_annotations.nit
diff --git
a/src/platform/app_annotations.nit
b/src/platform/app_annotations.nit
index
67af354
..
62fbbb0
100644
(file)
--- a/
src/platform/app_annotations.nit
+++ b/
src/platform/app_annotations.nit
@@
-84,11
+84,11
@@
redef class AAnnotation
var args = n_args
if args.length < 1 then
var args = n_args
if args.length < 1 then
- modelbuilder.error(self, "Annotation error: \"{name}\" expects at least a single argument.")
+ modelbuilder.error(self, "Syntax Error: `{name}` expects at least one argument.")
return ""
else
for arg in args do
return ""
else
for arg in args do
- var format_error = "Annotation error: \"{name}\" expects its arguments to be of type Int or a call to `git_revision`"
+ var format_error = "Syntax Eror: `{name}` expects its arguments to be of type Int or a call to `git_revision`."
var value
value = arg.as_int
var value
value = arg.as_int