[Bro-Dev] Consistent error handling for scripting mistakes