Browse Source

Merge pull request #2504 from jon-lipstate/attr_error

helpful error on custom-attrs
gingerBill 2 years ago
parent
commit
7915dde43c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/checker.cpp

+ 1 - 0
src/checker.cpp

@@ -3524,6 +3524,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");
 				}
 			}
 		}