Fixes #5866: report error when technique creation failed