On 28 Jun 2012, at 00:32, Igor Stasenko wrote:
So, in case of ssl plugin you can clearly tell that if that prim failed, you know that there's something wrong with plugin, i.e. it fails to initialize or not exists: so even putting more informal message "there seem to be problem with SSL plugin (missing? no SSL library installed on your system? ) will clarify a lot and prevent from wasting our time explaining why that prim might fail or which VM has SSL and which might not.
=== Name: Zodiac-Core-SvenVanCaekenberghe.18 Author: SvenVanCaekenberghe Time: 28 June 2012, 10:04:19.612 am UUID: dca580f0-4d95-4d92-980c-1ebe622485d5 Ancestors: Zodiac-Core-SvenVanCaekenberghe.17 added ZdcPluginMissing exception to provided a more human friendly message when ZdcPluginSSLSession cannot be initialized (which is most probably due to a missing SSL/TLS plugin) === Now, ZdcPluginSSLSession>>initialize "Initialize the receiver" [ handle := self primitiveSSLCreate ] on: PrimitiveFailed do: [ :exception | "Give a more human friendly error message" ZdcPluginMissing signal ] with ZdcPluginMissing new printString. 'ZdcPluginMissing: SSL/TLS plugin initailization failed (VM plugin missing ? OS libraries missing ?)' Sven -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill