Fixed the assert to restore pre-refactoring condition for calling set_error() equivalent.
Attach a file by drag & drop or click to upload