nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename REAMDE to README.md
[nit.git]
/
src
/
platform
/
app_annotations.nit
diff --git
a/src/platform/app_annotations.nit
b/src/platform/app_annotations.nit
index
ab0b067
..
62fbbb0
100644
(file)
--- a/
src/platform/app_annotations.nit
+++ b/
src/platform/app_annotations.nit
@@
-68,9
+68,9
@@
class AppProject
end
redef fun to_s do return """
end
redef fun to_s do return """
-name: {{{name or else "null"}}}
-namespace: {{{namespace or else "null"}}}
-version: {{{version or else "null"}}}"""
+name: {{{name}}}
+namespace: {{{namespace}}}
+version: {{{version}}}"""
end
redef class AAnnotation
end
redef class AAnnotation
@@
-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