diff options
Diffstat (limited to 'etc/default.fln')
-rw-r--r-- | etc/default.fln | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/default.fln b/etc/default.fln index 178af18..d3da5eb 100644 --- a/etc/default.fln +++ b/etc/default.fln @@ -15,8 +15,15 @@ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ if (.Response.Errors) { - error("Error: ",.Response.Errors.Error.Message,"\n"); - exit(1); + 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(.); |