Gracefully handle OhDear SDK errors

Created on 8 November 2023, over 1 year ago
Updated 16 April 2024, about 1 year ago

Problem/Motivation

If ohdear api key is missing or parameters are out of bound we see this drush error.

$ drush ohdear:info          

                                                            
  There are no commands defined in the "ohdear" namespace.  

$ drush ohdear:uptime  --split month --from 20220101000000 #(site did not exist in 2022)

                                                            
  There are no commands defined in the "ohdear" namespace.  

It would be more helpful if the error provided would be more descriptive.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024