diff --git a/inference-engine/src/gna_plugin/gna_device.cpp b/inference-engine/src/gna_plugin/gna_device.cpp index bbd4891bef7a5b..e6170a86c588e9 100644 --- a/inference-engine/src/gna_plugin/gna_device.cpp +++ b/inference-engine/src/gna_plugin/gna_device.cpp @@ -123,7 +123,10 @@ void GNADeviceHelper::checkGna2Status(Gna2Status status, const Gna2Model& gnaMod } Gna2ModelError error; - Gna2ModelGetLastError(&error); + auto getLastErrorStatus = Gna2ModelGetLastError(&error); + if (!Gna2StatusIsSuccessful(getLastErrorStatus)) { + THROW_GNA_EXCEPTION << "\nUnsuccessful Gna2Status: (" << status << ") " << gna2StatusBuffer.data(); + } std::stringstream ss; ss << "\n GNA Library Error:\n";