After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642506 - missing class name in error message
missing class name in error message
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Philip Chimento
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-16 20:21 UTC by Dan Winship
Modified: 2017-01-23 06:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
function: Print class name in error message (3.05 KB, patch)
2017-01-13 06:33 UTC, Philip Chimento
committed Details | Review

Description Dan Winship 2011-02-16 20:21:45 UTC
JS ERROR: !!!     message = 'Too few arguments to method St.get_values expected 6 got 0'

that should say "St.Adjustment.get_values", not "St.get_values"

not sure if there are similar examples elsewhere
Comment 1 Philip Chimento 2017-01-13 06:33:42 UTC
Created attachment 343405 [details] [review]
function: Print class name in error message

If throwing an exception about too few arguments passed to a GI function,
and if the function is a message, then we should print the name of the
"container info" as well. That is, "Gio.File.read" rather than
"Gio.read".
Comment 2 Cosimo Cecchi 2017-01-23 04:49:22 UTC
Review of attachment 343405 [details] [review]:

Looks good to me.
Comment 3 Philip Chimento 2017-01-23 06:00:07 UTC
Attachment 343405 [details] pushed as 421eed2 - function: Print class name in error message