mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Now calling toString on exceptions when constructing RunnerException.
This commit is contained in:
parent
575f4a2a99
commit
512b1a0a00
@ -63,7 +63,7 @@ public class Sizer implements MessageConsumer {
|
||||
} catch (InterruptedException intExc) { }
|
||||
}
|
||||
} catch (Exception e) {
|
||||
exception = new RunnerException(e);
|
||||
exception = new RunnerException(e.toString());
|
||||
}
|
||||
|
||||
if (exception != null)
|
||||
@ -86,9 +86,9 @@ public class Sizer implements MessageConsumer {
|
||||
st.nextToken();
|
||||
size = (new Integer(st.nextToken().trim())).longValue();
|
||||
} catch (NoSuchElementException e) {
|
||||
exception = new RunnerException(e);
|
||||
exception = new RunnerException(e.toString());
|
||||
} catch (NumberFormatException e) {
|
||||
exception = new RunnerException(e);
|
||||
exception = new RunnerException(e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user