Project

General

Profile

Actions

Bug #3726

closed
W( PA

On scripting error loops in result of stuck

Bug #3726: On scripting error loops in result of stuck

Added by westor (GR) about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
10/08/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

I found a bug that when someone trying to catch the error via :error into a code and including an identifier that doesn't exist, the adiirc looping in result of stuck as it should only escape the not-exist identifier and continue the echo message, i will provide an example code to reproduce it.

Example Code:

alias test_70 {
  hadd
  return
  :error | get_error $not_exit_identifier $scriptline $error | reseterror
}
alias get_error { echo -s IS: $1- }

It should return: IS: NUMBER * /hadd: insufficient parameters (line NUMBER, FILE)
Like: IS: 5060 * /hadd: insufficient parameters (line 5058, WESTOR Module Manager.mrc)

If "Identifier Warning" option is enabled then it should give the "* No such identifier: $not_exit_identifier (line NUMBER, FILE)" and if that option is disable it should display the echo message without the stuck.

- Thanks!

W( Updated by westor (GR) about 8 years ago Actions #1

I tried that code when the "Identifier Warning" option is OFF and it didn't loop stuck, so it seems to be triggering only when that option is enabled.

PA Updated by Per Amundsen over 7 years ago Actions #2

  • Status changed from New to Resolved

PA Updated by Per Amundsen over 7 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom