Not able to throw customised error

14 views
Skip to first unread message

Vaishali Dhakate

unread,
Dec 26, 2022, 7:06:53 PM12/26/22
to openxt
Working on updatemgr code . i want to throw custom error msg. I know I have written code correctly. So what i see is the dbd package has updatemgr which doesn't have my changes. Thought this could be the reason why my custom error msg is not displaying. I have made changes in updatemgr and build with changes. The code is correct . but my custom error that I have included in the UpdateMgr/Error.hs doesn't show. Its blank like in the image. I can see the custom error with its code in the update fail reason. This is there in /var/log/messages. Now I am thinking dbd is also having updatemgr in the temp/work/core-x64/dbd/git/updatemgr but this lacks my changes. Any directions are appreciated. Thanks again for your time and help.
Regards,
Vaishali.
IMG_20221227_050306.jpg

Vaishali Dhakate

unread,
Dec 27, 2022, 1:29:10 PM12/27/22
to openxt
Same code if I replace the error, I can get the code to throw already present errors. But my custom error. No Sir! Also I grepped through the code for the exact error msg displayed, like in this case "update signature has failed verification" . trying to figure from which package this error is coming for very long multiple times. But can't find. I can do this. My code is 1OO percent correct. As it can throw failed verification signature error with no problem. Same code remove custom error and put failed signature verification error. Works!!! But not my custom error. Please can you help. 
Regards
Vaishali
IMG_20221227_235051.jpg

Jason Andryuk

unread,
Dec 27, 2022, 9:41:20 PM12/27/22
to Vaishali Dhakate, openxt
Hi, Vaishali

There are many pieces in play. updatemgr in dom0 is generating the
exception and sending it out over dbus, I think? I'm not sure if
xenmgr in dom0 is involved, but somehow the html/javascript in uivm
sees it. The javascript code in toolstack-data is what displays the
exception. I'm not sure, but the javascript may have specific code to
handle and display only certain messages. i.e. you might need to
modify that to show your message.

I hope this helps.

-Jason
Reply all
Reply to author
Forward
0 new messages