From 4a26ee9d42f04c3915af8ced3aa74e2c1375ef8a Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 3 Feb 2015 20:10:42 -0800 Subject: [PATCH] Properly report cancellation. --- source/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/main.cpp b/source/main.cpp index 568d10f..bf743bd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -106,6 +106,8 @@ int main(int argc, char **argv) { resultMsg << "Install "; if(ret == 0) { resultMsg << "succeeded!"; + } else if(ret == -2) { + resultMsg << "cancelled!"; } else { resultMsg << "failed! Error: 0x" << std::hex << ret; } @@ -144,6 +146,8 @@ int main(int argc, char **argv) { if(ret == 0) { resultMsg << "succeeded!"; + } else if(ret == -2) { + resultMsg << "cancelled!"; } else { resultMsg << "failed! Error: 0x" << std::hex << ret; }