# HG changeset patch # User Kim Alvefur # Date 1492881124 -7200 # Node ID f8c52010bd3794084d22ac282a6a9cb92b58bf3f # Parent 66d8f6b3c3efef2f6592b4af06c55fbeb7f57616 prosodyctl: Return non-zero exit code from cert import if no certificates imported diff -r 66d8f6b3c3ef -r f8c52010bd37 prosodyctl --- a/prosodyctl Sat Apr 22 19:11:26 2017 +0200 +++ b/prosodyctl Sat Apr 22 19:12:04 2017 +0200 @@ -896,6 +896,9 @@ end if imported[1] then show_message("Imported certificate and key for hosts "..table.concat(imported, ", ")); + else + show_warning("No certificates imported :("); + return 1; end end