corebenchrunner: Fix error logic


A function returned the wrong error type, causing match-statements to
fall through and errors to go uncaught.

Change-Id: Ic71b69fca3916d61c3ed6def2cddefc350d511c7
Reviewed-by: Daniel Smith <daniel.smith@qt.io>
commit921cdd3e19ce7658340e9ae6d1e2288bca27a9b7
parent0924904881f3fea7dda99d7b7a5c4a677d93111f
authorAudun Sutterud <audun.sutterud@qt.io>
committerAudun Sutterud <audun.sutterud@qt.io>
commit timeTue, 16 Apr 2024 14:32:09 +0200