From 800060ddb7ce5d403329203820c89111847cce24 Mon Sep 17 00:00:00 2001 From: Bernard Teo Date: Wed, 6 Jul 2022 00:08:40 +0800 Subject: [PATCH] Portal: Fix typo in error messages --- src/nfd_portal.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nfd_portal.cpp b/src/nfd_portal.cpp index f5a9302..7b4a66e 100644 --- a/src/nfd_portal.cpp +++ b/src/nfd_portal.cpp @@ -720,7 +720,7 @@ nfdresult_t ReadResponseUrisSingle(DBusMessage* msg, const char*& file) { const nfdresult_t res = ReadResponseUris(msg, uri_iter); if (res != NFD_OKAY) return res; // can be NFD_CANCEL or NFD_ERROR if (dbus_message_iter_get_arg_type(&uri_iter) != DBUS_TYPE_STRING) { - NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_ERROR; } dbus_message_iter_get_basic(&uri_iter, &file); @@ -775,7 +775,7 @@ nfdresult_t ReadResponseUrisSingleAndCurrentExtension(DBusMessage* msg, } if (dbus_message_iter_get_arg_type(¤t_filter_struct_iter) != DBUS_TYPE_ARRAY) { - // NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + // NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_OKAY; } DBusMessageIter current_filter_array_iter; @@ -788,7 +788,7 @@ nfdresult_t ReadResponseUrisSingleAndCurrentExtension(DBusMessage* msg, DBusMessageIter current_filter_extn_iter; dbus_message_iter_recurse(¤t_filter_array_iter, ¤t_filter_extn_iter); if (dbus_message_iter_get_arg_type(¤t_filter_extn_iter) != DBUS_TYPE_UINT32) { - // NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + // NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_OKAY; } dbus_uint32_t type; @@ -803,7 +803,7 @@ nfdresult_t ReadResponseUrisSingleAndCurrentExtension(DBusMessage* msg, return NFD_OKAY; } if (dbus_message_iter_get_arg_type(¤t_filter_extn_iter) != DBUS_TYPE_STRING) { - // NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + // NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_OKAY; } dbus_message_iter_get_basic(¤t_filter_extn_iter, &tmp_extn); @@ -1364,7 +1364,7 @@ nfdresult_t NFD_PathSet_GetPathN(const nfdpathset_t* pathSet, } } if (dbus_message_iter_get_arg_type(&uri_iter) != DBUS_TYPE_STRING) { - NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_ERROR; } const char* file; @@ -1402,7 +1402,7 @@ nfdresult_t NFD_PathSet_EnumNextN(nfdpathsetenum_t* enumerator, nfdnchar_t** out return NFD_OKAY; } if (arg_type != DBUS_TYPE_STRING) { - NFDi_SetError("D-Bus response signal URI sub iter is not an string."); + NFDi_SetError("D-Bus response signal URI sub iter is not a string."); return NFD_ERROR; } const char* file;