Skip to content

Commit 2b15e2b

Browse files
#29: debug issue
1 parent 43169db commit 2b15e2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if [ -n "$KEY" ]; then
9494
}))
9595
9696
return JSON.stringify({ items: translations }, null, 2)
97-
}' "$result"
97+
}' "$result" || echo >&2 "ERROR: Input '$result'"
9898
else
9999
result=$(curl -s 'https://www2.deepl.com/jsonrpc' \
100100
"${HEADER[@]}" \
@@ -110,7 +110,7 @@ else
110110
}))
111111
112112
return JSON.stringify({ items: translations }, null, 2)
113-
}' "$result"
113+
}' "$result" || echo >&2 "ERROR: Input '$result'"
114114
fi
115115
fi
116116
###############################################################################

0 commit comments

Comments
 (0)