As suggested by @Palaniyappan , use a try catch. The activity which is giving error Right click on it → then Surround with Try catch-> in the catch section selection System.Exception and use a Log message with Exception.message, this will not stop the code and will print the error as well.
As @Palaniyappan suggested, you need to enclose the activity with Try-Catch activity.
In the try block, you have to use the logical sequence into the try block, and in the catch, create a System.Exception and inside that create a log message with Log level Error (to notify it is an error) and in the message enter the exception variable (Sample Screenshot below)
So, when the error occurs, in the catch block the error will be caught and written into the output panel. So, you can able to view the error in the output panel for reference.
For a clear understanding,
in the try block, what logical sequence which you have built need to be given, so when any error or issue occurs in the try block that will be caught in the catch block.
In a simple way, the error or issue raised in the try block will be caught by the catch block. That’s it.