daniel added a comment.

The code that triggers the error is a simple guard against type and version errors:

	 if type( data ) ~= 'table' or type( data.schemaVersion ) ~= 'number' then
		 error( 'The entity data must be a table obtained via mw.wikibase.getEntityObject' )
	 end

We could perhaps gain some knowledge by adding information about the actual type of data and data.schemaVersion to the output. I don't speak Lua very well, though...


TASK DETAIL
https://phabricator.wikimedia.org/T170039

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: daniel, putnik, Framawiki, Zebulon84, Thibaut120094, TerraCodes, Jay8g, Liuxinyu970226, aude, Vachovec1, Zdzislaw, ValterVB, Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, JJMC89, Izno, Fuzheado, Cwek, Wikidata-bugs, Dinoguy1000, jayvdb, MrStradivarius, zhuyifei1999, Shizhao, Anomie, Arlolra, Jackmcbarn, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to