View Single Post
Old 10-16-2020, 01:50 PM   #786
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,016
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by capink View Post
Edit: Another option is to fail silently without an error message.
I'd be tempted to trap the errors, clear preferences for missing columns, and warn the user next time it is opened that some preferences were cleared.
Or something like that. That way, next time it would be the same as failing silently, except that everything that wasn't broken should work.

Another option would be to leave everything broken, print some warnings to the debug log, and force the user into the preferences dialog (maybe with an explanation why) next time they try to use the plugin.

The big difference is that if the deleted a column and put it back, the second option should leave everything as it was.
compurandom is offline   Reply With Quote