Skip to content

Commit

Permalink
Merge pull request #1471 from nelmio/GuilhemN-patch-1
Browse files Browse the repository at this point in the history
Update error message
  • Loading branch information
GuilhemN authored Feb 13, 2019
2 parents 73f07aa + 2d81f9f commit 3b0b516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModelDescriber/ObjectModelDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function describe(Model $model, Schema $schema)
);
}
} else {
throw new \Exception(sprintf('Unknown type: %s', $type->getBuiltinType()));
throw new \Exception(sprintf('Type "%s" is not supported in %s::$%s. You may use the `@SWG\Property(type="")` annotation to specify it manually.', $type->getBuiltinType(), $class, $propertyName));
}
}
}
Expand Down

0 comments on commit 3b0b516

Please sign in to comment.