@@ -243,7 +243,7 @@ static void lte_pause_ppp(void) {
243243 if (!lte_push_at_command ("AT" , LTE_RX_TIMEOUT_MIN_MS )) {
244244 mp_hal_delay_ms (LTE_PPP_BACK_OFF_TIME_MS );
245245 if (!lte_push_at_command ("AT" , LTE_RX_TIMEOUT_MIN_MS )) {
246- nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , mpexception_os_operation_failed ));
246+ nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , "Pause PPP failed" ));
247247 }
248248 }
249249 }
@@ -1174,13 +1174,13 @@ STATIC mp_obj_t lte_resume(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t
11741174 mp_arg_parse_all (n_args - 1 , pos_args + 1 , kw_args , MP_ARRAY_SIZE (allowed_args ), allowed_args , args );
11751175
11761176 if (lteppp_get_state () == E_LTE_PPP ) {
1177- nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , mpexception_os_request_not_possible ));
1177+ nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , "Modem is already connected" ));
11781178 }
11791179 lte_check_attached (lte_legacyattach_flag );
11801180
11811181 if (lteppp_get_state () == E_LTE_SUSPENDED || lteppp_get_state () == E_LTE_ATTACHED ) {
11821182 if (lteppp_get_state () == E_LTE_ATTACHED && lteppp_get_legacy () == E_LTE_LEGACY ) {
1183- nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , mpexception_os_request_not_possible ));
1183+ nlr_raise (mp_obj_new_exception_msg (& mp_type_OSError , "Operation failed (attached and legacy)" ));
11841184 }
11851185// char at_cmd[LTE_AT_CMD_SIZE_MAX - 4];
11861186 if (args [0 ].u_obj != mp_const_none ) {
0 commit comments