Update error message

This commit is contained in:
Guilhem N 2019-02-13 19:46:28 +01:00 committed by GitHub
parent b171794cce
commit 2d81f9fd49
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));
}
}
}