device: use g_set_error_literal