Skip to content

Commit

Permalink
more useful "Unable to locate handler" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 9, 2022
1 parent 5008dd4 commit d9923ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pogl_glut.xs
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ static SV * get_glut_win_handler(int win, int type)
SV ** h;

if (!glut_handlers)
croak("Unable to locate glut handler");
croak("Unable to locate glut handlers list");

h = av_fetch(glut_handlers, win, FALSE);

if (!h || !SvOK(*h) || !SvROK(*h))
croak("Unable to locate glut handler");
croak("Unable to locate glut handler list for window %d", win);

h = av_fetch((AV*)SvRV(*h), type, FALSE);

if (!h || !SvOK(*h) || !SvROK(*h))
croak("Unable to locate glut handler");
croak("Unable to locate glut handler type=%d for window %d", type, win);

return SvRV(*h);
}
Expand Down

0 comments on commit d9923ac

Please sign in to comment.