stlink: add generic open error routine