Skip to content

Commit

Permalink
Update error message for clarity
Browse files Browse the repository at this point in the history
Reviewed By: tyao1

Differential Revision: D63924043

fbshipit-source-id: 9d5fd9a4231cbd56c1b4b0f1fc6842d4bda9a3b2
  • Loading branch information
captbaritone authored and facebook-github-bot committed Oct 8, 2024
1 parent 5c548bd commit 6e4c120
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/crates/relay-schema-generation/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub enum SchemaGenerationError {
)]
UseNamedOrDefaultImport,
#[error(
"Failed to find type definition for `{entity_name}` using a {export_type} import from module `{module_name}`. Please make sure `{entity_name}` is imported using a named or default import and that it is a resolver type"
"Failed to find @RelayResolver type definition for `{entity_name}` using a {export_type} import from module `{module_name}`. Please make sure `{entity_name}` is either defined locally or imported using a named or default import and that it is a resolver type"
)]
ModuleNotFound {
entity_name: StringKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function name(dog: DogFlowType): ?string {
6 │ return 5;


✖︎ Failed to find type definition for `DogFlowType` using a default import from module `Dog.flow`. Please make sure `DogFlowType` is imported using a named or default import and that it is a resolver type
✖︎ Failed to find @RelayResolver type definition for `DogFlowType` using a default import from module `Dog.flow`. Please make sure `DogFlowType` is either defined locally or imported using a named or default import and that it is a resolver type

Dog-name.js:7:27
6 │ */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function fullName(cat: CatFlowType): ?FullName {
==================================== OUTPUT ===================================


✖︎ Failed to find type definition for `FullName` using a FullName import from module `module`. Please make sure `FullName` is imported using a named or default import and that it is a resolver type
✖︎ Failed to find @RelayResolver type definition for `FullName` using a FullName import from module `module`. Please make sure `FullName` is either defined locally or imported using a named or default import and that it is a resolver type

module.js:26:46
25 │ */
Expand Down

0 comments on commit 6e4c120

Please sign in to comment.