Blame view

src/amdaGetErrorMsg/Main.cc 416 Bytes
80111081   Benjamin Renard   Add executable am...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * Main.cc
 *  Created on: 11 jul. 2019
 *      Author: AKKA IS
 */
#include <iostream>

#include "DicError.hh"

/**
 * Main function
 */
int main(int argc, char *argv[]) {
	if (argc < 2) {
		std::cout << "Missing required argument: errorCode" << std::endl;
		return 1;
	}

        int errorCode = std::atoi(argv[1]);
        std::cout << errorCode << " - " << getErrorMsg(errorCode) << std::endl;
	return 0;
}