shader: improve error reporting