@@ -136,7 +136,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
136
136
$ user = new User ;
137
137
$ users_id = plugin_formcreator_getFromDBByField ($ user , 'name ' , $ input ['actor_value ' ]);
138
138
if ($ users_id === false ) {
139
- throw new ImportFailureException ('failed to find a user ' );
139
+ throw new ImportFailureException (sprintf ( __ ( 'failed to find a user: ID %1$d ' ), $ users_id ) );
140
140
}
141
141
$ input ['actor_value ' ] = $ users_id ;
142
142
break ;
@@ -145,7 +145,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
145
145
$ group = new Group ;
146
146
$ groups_id = plugin_formcreator_getFromDBByField ($ group , 'completename ' , $ input ['actor_value ' ]);
147
147
if ($ groups_id === false ) {
148
- throw new ImportFailureException ('failed to find a group ' );
148
+ throw new ImportFailureException (sprintf ( __ ( 'failed to find a group: ID %1$d ' ), $ groups_id ) );
149
149
}
150
150
$ input ['actor_value ' ] = $ groups_id ;
151
151
break ;
@@ -154,7 +154,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
154
154
$ supplier = new Supplier ;
155
155
$ suppliers_id = plugin_formcreator_getFromDBByField ($ supplier , 'name ' , $ input ['actor_value ' ]);
156
156
if ($ suppliers_id === false ) {
157
- throw new ImportFailureException ('failed to find a supplier ' );
157
+ throw new ImportFailureException (sprintf ( __ ( 'failed to find a supplier: ID %1$d ' ), $ suppliers_id ) );
158
158
}
159
159
$ input ['actor_value ' ] = $ suppliers_id ;
160
160
break ;
0 commit comments