I am using the method ol.source.WMTS.optionsFromCapabilities to create a WMTS layer and when I am trying to use a projection that does not exist in OpenLayers it throws an error.
Please note that in my case the projection is not available up front.
Unfortunately, the nature of the error is very general. When using the minified version I get:
Cannot read property 'wb' of null
along with the stack trace, which is translated to the following when using the debug version:
Cannot read property getCode() of null
Is there a way to get the actual error and not one in just plain text?