printers: Use g_error_matches where appropriate

11 jobs for printers-g-error-matches in 7 minutes and 52 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #164351
build

00:02:19

 
  Test
passed #164353
asan

00:05:32

passed #164352
test

00:00:50

 
  Manual
manual #164358
allowed to fail manual
armv8
manual #164354
allowed to fail manual
flatpak
manual #164357
allowed to fail manual
msan
manual #164359
allowed to fail manual
ppc64le
manual #164355
allowed to fail manual
tsan
manual #164356
allowed to fail manual
ubsan
 
  Review
manual #164360
allowed to fail manual
review
manual #164361
allowed to fail manual
stop_review