diff options
Diffstat (limited to 'etc/default.fln')
-rw-r--r-- | etc/default.fln | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/default.fln b/etc/default.fln index 178af18..d3da5eb 100644 --- a/etc/default.fln +++ b/etc/default.fln @@ -15,9 +15,16 @@ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ if (.Response.Errors) { - error("Error: ",.Response.Errors.Error.Message,"\n"); + if (.Response.Errors.Error.Code[DryRunOperation]) { + print(dequote(.Response.Errors.Error.Message),"\n"); + } else if (.Response.Errors.Error.Code[UnauthorizedOperation]) { + error(dequote(.Response.Errors.Error.Message),"\n"); exit(1); } else { + error("Error: ",dequote(.Response.Errors.Error.Message),"\n"); + exit(1); + } +} else { error("Unrecognized response:\n"); dump(.); exit(2); |