Merge pull request #1471 from nelmio/GuilhemN-patch-1

Update error message
This commit is contained in:
Guilhem N 2019-02-13 21:36:43 +01:00 committed by GitHub
commit 3b0b5162ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
);
}
} 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));
}
}
}