buildertool: Exit orderly
authorMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jul 2023 19:49:11 +0000 (15:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jul 2023 19:49:11 +0000 (15:49 -0400)
commitab809d1dc35f8984eb2f64cac70956eb11598576
tree9b3e6ccde37eb91811382c78d8cf014e229e7f3b
parentf920723eae6fc6d535d31ff92051c02a8f169784
buildertool: Exit orderly

The validate command does need a display connection,
for better or worse. So exit in an orderly fashion
if we don't have one, instead of crashing.

Fixes: #5948
tools/gtk-builder-tool-validate.c