Timeline for Is it possible to return something when the condition inside the require fails?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 10, 2022 at 4:52 | comment | added | Yongjian P. | No, because when an error occurs, the state is reverted back to its original state. | |
Oct 10, 2022 at 4:49 | history | edited | Yongjian P. | CC BY-SA 4.0 |
added 73 characters in body
|
Oct 10, 2022 at 4:48 | comment | added | xrfxlp | Can it be done by catching the error? [From what I've figured out from documentation that try and catch only work for external calls, but I'm not sure about this case] | |
Oct 10, 2022 at 4:46 | history | answered | Yongjian P. | CC BY-SA 4.0 |