Commit ab5532df1f18842ed5fec31d16ba45a878ad6171

Authored by Adhidarma Hadiwinoto
1 parent 4fa2023a31
Exists in master

penanganan keyword Gagal

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -116,6 +116,9 @@ function parseMessage(task, message) {
116 116 if (message.indexOf('SUKSES') >= 0) {
117 117 rc = '00';
118 118 }
  119 + else if (message.indexOf('Gagal.') >= 0) {
  120 + rc = '40';
  121 + }
119 122 else if (message.indexOf('GAGAL') >= 0) {
120 123 rc = '40';
121 124 }