Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mannprerak2 committed Nov 18, 2023
1 parent 9cf7e2b commit 26c7df6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pkgs/ffigen/ffigen.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"entry-points"
]
},
"ignore-source-errors": {
"type": "boolean"
},
"compiler-opts": {
"$oneOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/lib/src/config_provider/config_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class ConfigSpec<TE extends Object?, RE extends Object?> {
return {
r"$id": schemaId,
r"$comment":
"This file is generated. To regenerate run: dart tool/generate_json_schema.dart in github.com/dart-lang/ffigen",
"This file is generated. To regenerate run: dart tool/generate_json_schema.dart in github.com/dart-lang/native/tree/main/pkgs/ffigen",
r"$schema": "https://json-schema.org/draft/2020-12/schema",
...schemaMap,
r"$defs": defs,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/lib/src/header_parser/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ List<Binding> parseToBindings(Config c) {
"Ignored source errors (User supplied --ignore-source-errors)");
} else {
_logger.severe(
"Skipped generating bindings. You can either resolve these errors or ignore them (Pass --ignore-source-errors or set ignore-source-errors:true in config.");
"Skipped generating bindings due to errors in source files. Either resolve or ignore them (Set --ignore-source-errors on cmd or ignore-source-errors:true in config.");
exit(1);
}
}
Expand Down

0 comments on commit 26c7df6

Please sign in to comment.