Minor cleanups

This commit is contained in:
Erik C. Thauvin 2024-01-31 18:03:04 -08:00
parent ee2f4f3e51
commit e0b7308960
4 changed files with 5 additions and 23 deletions

View file

@ -41,7 +41,7 @@ fun main(args: Array<String>) {
} catch (e: CryptoException) {
System.err.println("HTTP Status Code: ${e.statusCode}")
System.err.println("${e.message} (${e.id})")
} catch (e: IllegalArgumentException) {
} catch (ignore: IllegalArgumentException) {
System.err.println("Could not display the specified currency: ${args[1]}")
} catch (e: IOException) {
System.err.println(e.message)

View file

@ -39,7 +39,7 @@ fun main(args: Array<String>) {
} catch (e: CryptoException) {
System.err.println("HTTP Status Code: ${e.statusCode}")
System.err.println(e.message)
} catch (e: IllegalArgumentException) {
} catch (ignore: IllegalArgumentException) {
System.err.println("Could not display the specified currency: ${args[1]}")
} catch (e: IOException) {
System.err.println(e.message)

View file

@ -41,7 +41,7 @@ fun main(args: Array<String>) {
} catch (e: CryptoException) {
System.err.println("HTTP Status Code: ${e.statusCode}")
System.err.println("${e.message} (${e.id})")
} catch (e: IllegalArgumentException) {
} catch (ignore: IllegalArgumentException) {
System.err.println("Could not display the specified currency: ${args[1]}")
} catch (e: IOException) {
System.err.println(e.message)