MT#20325 TryCatch syntax fix

- now requires syntax "} catch ($e) {"
      otherwise the scope parser fails

Change-Id: I00eb2f03032f064a6031447e2a0a0e80048c88f8
changes/91/6491/3
Kirill Solomko 10 years ago
parent 0dbcfd69c2
commit 30ecb6a781

@ -1007,8 +1007,7 @@ sub edit_balance :Chained('base_restricted') :PathPart('balance/edit') :Args(0)
c => $c,
desc => $c->loc('Account balance successfully changed!'),
);
}
catch($e) {
} catch($e) {
NGCP::Panel::Utils::Message::error(
c => $c,
error => $e,
@ -1084,8 +1083,7 @@ sub topup_cash :Chained('base_restricted') :PathPart('balance/topupcash') :Args(
c => $c,
desc => $c->loc('Top-up using cash performed successfully!'),
);
}
catch($e) {
} catch($e) {
NGCP::Panel::Utils::Message::error(
c => $c,
error => $e,
@ -1106,8 +1104,7 @@ sub topup_cash :Chained('base_restricted') :PathPart('balance/topupcash') :Args(
request_token => NGCP::Panel::Utils::ProfilePackages::PANEL_TOPUP_REQUEST_TOKEN,
);
});
}
catch($e) {
} catch($e) {
$c->log->error("failed to create topup log record: $e");
}
@ -1180,8 +1177,7 @@ sub topup_voucher :Chained('base_restricted') :PathPart('balance/topupvoucher')
c => $c,
desc => $c->loc('Top-up using voucher performed successfully!'),
);
}
catch($e) {
} catch($e) {
NGCP::Panel::Utils::Message::error(
c => $c,
error => $e,
@ -1202,8 +1198,7 @@ sub topup_voucher :Chained('base_restricted') :PathPart('balance/topupvoucher')
request_token => NGCP::Panel::Utils::ProfilePackages::PANEL_TOPUP_REQUEST_TOKEN,
);
});
}
catch($e) {
} catch($e) {
$c->log->error("failed to create topup log record: $e");
}

Loading…
Cancel
Save