CTK icon indicating copy to clipboard operation
CTK copied to clipboard

ASSERT if Midas query has no results

Open mwoehlke-kitware opened this issue 11 years ago • 0 comments

qMidasAPI::synchronousQuery() throws an assert if a query returns no results. As this is a legitimate response from the server, the method should not terminate the calling application, but rather return the empty result list to the caller (with no other error condition artificially introduced) to be handled.

It looks like fixing this may need special handling so that timeouts are still indicated to the caller as exceptional conditions, rather than being as simple as removing the hunk added in commontk/qRestAPI@07854251.

mwoehlke-kitware avatar May 29 '14 20:05 mwoehlke-kitware