vulkaninfo: Refactor error handling
authorCharles Giessen <charles@lunarg.com>
Thu, 27 Feb 2020 22:02:29 +0000 (15:02 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 3 Mar 2020 22:38:38 +0000 (15:38 -0700)
commit1af57a3ec4143286f12d32565dcd7ed44f01754c
treeb0a7d2ec6f9194b053356b39270876728e34f1e3
parenta553ed74b7fe3d5d14da312d47144ccfc4514a4b
vulkaninfo: Refactor error handling

Previously, if vulkaninfo encountered any errors, it shut down then
and there. This is bad for json output where you are left with an
invalid file. By using exceptions, vulkaninfo will catch errors,
print it to cerr, then finish off the file so its left in a valid
state.

Change-Id: I2c0116b435713df6135b9c606fa95cfadbfdf8d8
vulkaninfo/outputprinter.h
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h