Change panics to errors
We should omit usage of panic as much as possible and need to rely on the proper error handling instead. The change converts panic invocations into the error return where it is possible.
We should omit usage of panic as much as possible and need to rely on the proper error handling instead. The change converts panic invocations into the error return where it is possible.