Explorar o código

helpful errors custom-attrs

Jon Lipstate %!s(int64=2) %!d(string=hai) anos
pai
achega
f5dcbf517b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/checker.cpp

+ 1 - 0
src/checker.cpp

@@ -3507,6 +3507,7 @@ gb_internal void check_decl_attributes(CheckerContext *c, Array<Ast *> const &at
 			if (!proc(c, elem, name, value, ac)) {
 				if (!build_context.ignore_unknown_attributes) {
 					error(elem, "Unknown attribute element name '%.*s'", LIT(name));
+					error_line("\tDid you forget to use build flag '-ignore-unknown-attributes'?\n");
 				}
 			}
 		}