comparison src/dil/Messages.d @ 818:372fa4fbbb1d

Added error messages and applied fixes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 13 Mar 2008 02:21:26 +0100
parents e6fb7ed87d3a
children
comparison
equal deleted inserted replaced
817:e6fb7ed87d3a 818:372fa4fbbb1d
112 auto UTF32FileMustBeDivisibleBy4 = "the byte length of a UTF-32 source file must be divisible by 4."; 112 auto UTF32FileMustBeDivisibleBy4 = "the byte length of a UTF-32 source file must be divisible by 4.";
113 // DDoc macros: 113 // DDoc macros:
114 auto UndefinedDDocMacro = "DDoc macro '{}' is undefined"; 114 auto UndefinedDDocMacro = "DDoc macro '{}' is undefined";
115 auto UnterminatedDDocMacro = "DDoc macro '{}' has no closing ')'"; 115 auto UnterminatedDDocMacro = "DDoc macro '{}' has no closing ')'";
116 // Lexer messages: 116 // Lexer messages:
117 auto CantReadFile = "can't read module file";
118 auto InexistantFile = "module file doesn't exist";
117 auto InvalidOctalEscapeSequence = "value of octal escape sequence is greater than 0xFF: '{}'"; 119 auto InvalidOctalEscapeSequence = "value of octal escape sequence is greater than 0xFF: '{}'";
118 auto InvalidModuleName = "the file name '{}' can't be used a module name; it's an invalid or reserved D identifier."; 120 auto InvalidModuleName = "the file name '{}' can't be used a module name; it's an invalid or reserved D identifier.";
119 // Parser messages: 121 // Parser messages:
120 auto InvalidUTF8SequenceInString = "invalid UTF-8 sequence in string literal: '{0}'"; 122 auto InvalidUTF8SequenceInString = "invalid UTF-8 sequence in string literal: '{0}'";
121 auto ModuleDeclarationNotFirst = "a module declaration is only allowed as the first declaration in a file"; 123 auto ModuleDeclarationNotFirst = "a module declaration is only allowed as the first declaration in a file";
153 auto ExpectedAliasTemplateParam = "expected name for alias template parameter, not '{}'"; 155 auto ExpectedAliasTemplateParam = "expected name for alias template parameter, not '{}'";
154 auto ExpectedNameForThisTempParam = "expected name for 'this' template parameter, not '{}'"; 156 auto ExpectedNameForThisTempParam = "expected name for 'this' template parameter, not '{}'";
155 auto ExpectedIdentOrInt = "expected an identifier or an integer, not '{}'"; 157 auto ExpectedIdentOrInt = "expected an identifier or an integer, not '{}'";
156 auto MissingCatchOrFinally = "try statement is missing a catch or finally body."; 158 auto MissingCatchOrFinally = "try statement is missing a catch or finally body.";
157 // Semantic analysis: 159 // Semantic analysis:
158 auto CouldntLoadModule = "couldn't load module '{}'"; 160 auto CouldntLoadModule = "couldn't import module '{}'";
159 auto ConflictingModuleFiles = "module is in conflict with module '{}'"; 161 auto ConflictingModuleFiles = "module is in conflict with module '{}'";
160 auto ConflictingModuleAndPackage = "module is in conflict with package '{}'"; 162 auto ConflictingModuleAndPackage = "module is in conflict with package '{}'";
161 auto ModuleNotInPackage = "expected module to be in package '{}'"; 163 auto ModuleNotInPackage = "expected module to be in package '{}'";
162 auto UndefinedIdentifier = "undefined identifier '{}'"; 164 auto UndefinedIdentifier = "undefined identifier '{}'";
163 auto DeclConflictsWithDecl = "declaration '{}' conflicts with declaration @{}"; 165 auto DeclConflictsWithDecl = "declaration '{}' conflicts with declaration @{}";